{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "日期：2020-11-16\n",
    "撰写人：庄家薇  \n",
    "\n",
    "-----\n",
    "\n",
    "## 课堂学习内容：\n",
    "\n",
    "> * 1、高德API-WEB服务    \n",
    "> * 2、API经济成本的预估（调用量、并发量）   \n",
    "> * 3、地理编码、逆地理编码\n",
    "> * 4、路径规划\n",
    "> * 5、行政区域查询\n",
    "> * 6、搜索POI\n",
    "> * 7、IP定位\n",
    "> * 8 批量请求接口\n",
    "> * 9 静态地图\n",
    "> * 10 坐标转换\n",
    "> * 11 天气查询\n",
    "> * 12 输入提示\n",
    "> * 13 交通态势（已停止服务）\n",
    "\n",
    "## 课后练习：\n",
    "\n",
    "> * 1、[地理编码](https://lbs.amap.com/api/webservice/guide/api/georegeo)   \n",
    "> * 2、[路径规划](http://lbs.amap.com/api/webservice/guide/api/direction)   \n",
    "..."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 准备工作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests,json\n",
    "import pandas as pd\n",
    "zhuang_key = \"1a8b4a8f8eacf6e72af8287289e0e270\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 一、地理编码\n",
    "\n",
    "> * 应用场景：将详细的结构化地址转换为高德经纬度坐标。且支持对地标性名胜景区、建筑物名称解析为高德经纬度坐标。 能够应用在高考学习APP地理学科的高中学生，查询某个地区的经纬度供后续的地理学习之用。  \n",
    "\n",
    "> * 结构化地址举例：北京市朝阳区阜通东大街6号转换后经纬度：116.480881,39.989410  \n",
    "\n",
    "> * 地标性建筑举例：天安门转换后经纬度：116.397499,39.908722  \n",
    "\n",
    "> * 结构化地址的定义： 首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息  \n",
    "\n",
    "> * 2、url:https://restapi.amap.com/v3/geocode/geo?parameters      \n",
    "> * 3、requests.get()       \n",
    "> * 4、参数：   \n",
    "> * A.必选：key（高德API秘钥），address(结构化地址)  \n",
    "> * B.可选："
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [],
   "source": [
    "#### 准备数据 请思考：高德API是怎么获取数据的？数据库查询\n",
    "中大南方_address = \"广东省广州市中山大学南方学院\"\n",
    "华农_address = \"广东省广州市华南农业大学\"\n",
    "长隆_address = \"广东省广州市长隆\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "params = {\n",
    "    \"key\":zhuang_key,\n",
    "    \"address\":中大南方_address,\n",
    "}\n",
    "# positional argument follows keyword argument\n",
    "# pa 一定要放在前面，keyword argument放在末尾！！！可以\n",
    "response = requests.get(url,params=params)\n",
    "response"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区中山大学南方学院',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.679287,23.632575',\n",
       "   'level': '兴趣点'}]}"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "中大南方_location = response.json()['geocodes'][0]['location']\n",
    "中大南方_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "params = {\n",
    "    \"key\":zhuang_key,\n",
    "    \"address\":华农_address,\n",
    "}\n",
    "# positional argument follows keyword argument\n",
    "# pa 一定要放在前面，keyword argument放在末尾！！！可以\n",
    "response = requests.get(url,params=params)\n",
    "response"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.357083,23.157434'"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "华农_location = response.json()['geocodes'][0]['location']\n",
    "华农_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "new_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "params = {\n",
    "    \"key\":zhuang_key,\n",
    "    \"address\":长隆_address,\n",
    "}\n",
    "response = requests.get(url,params=params)\n",
    "response"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.264434,23.129162'"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "长隆_location = response.json()['geocodes'][0]['location']\n",
    "长隆_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "### 小结：\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 二、逆地理编码\n",
    "> * 定义：将经纬度转换为详细结构化的地址，且返回附近周边的POI、AOI信息。\n",
    "例如：116.480881,39.989410 转换地址描述后：北京市朝阳区阜通东大街6号。  \n",
    "\n",
    "> * 应用场景：知道某个经纬度可查询出具体地址，有助于地理地图绘制更加精准方便；或者应用于国家航空事业的火箭精准落地，避免在密集人群落地造成意外和不便。  \n",
    "\n",
    "> * A.url : https://restapi.amap.com/v3/geocode/regeo?parameters    \n",
    "> * B.requests.get()    \n",
    "> * C.参数：\n",
    "> * 1、必选：key,location(经纬度坐标)\n",
    "> * 2、可选: extensions[(默认：base)可选\"all\",描述数据详细指数]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备 中大南方_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 逆地理编码函数\n",
    "def regeo(key,location,extensions=\"base\",radius=None,poitype=None):\n",
    "    \"\"\"\"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "    params = {\n",
    "        \"key\":key,\n",
    "        \"location\":location,\n",
    "        \"extensions\":extensions,\n",
    "        \"radius\":radius,\n",
    "        \"poitype\":poitype\n",
    "    }\n",
    "    r = requests.get(url,params)\n",
    "    results = r.json()\n",
    "    return results\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "params = {\n",
    "    \"key\":zhuang_key,\n",
    "    \"location\":中大南方_location,\n",
    "    \"extensions\":\"all\"\n",
    "}\n",
    "r = requests.get(url,params)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['博学路', '中山路', 'S29从莞深高速']"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "_roads_ = []\n",
    "for item in r.json()['regeocode']['roads']:\n",
    "#     print(item['name'])\n",
    "    _roads_.append(item['name'])\n",
    "_roads_"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461203',\n",
       "    'location': '113.68,23.634',\n",
       "    'direction': '南',\n",
       "    'name': '博学路',\n",
       "    'distance': '156.951'},\n",
       "   {'id': '020F49F0050462451',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '东南',\n",
       "    'name': '中山路',\n",
       "    'distance': '343.951'},\n",
       "   {'id': '020F49F006047765',\n",
       "    'location': '113.682,23.6394',\n",
       "    'direction': '南',\n",
       "    'name': 'S29从莞深高速',\n",
       "    'distance': '807.947'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461203',\n",
       "    'second_id': '020F49F0050462451',\n",
       "    'location': '113.676794,23.634661',\n",
       "    'distance': '343.951',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '东南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇中山大学南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117103000',\n",
       "   'streetNumber': {'number': '7号',\n",
       "    'location': '113.678600,23.633329',\n",
       "    'direction': '西北',\n",
       "    'distance': '109.203',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '536585.849985',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'adcode': '440117',\n",
       "    'name': '中山大学南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '中山大学南方学院',\n",
       "    'location': '113.679262,23.632583',\n",
       "    'distance': '2.69979',\n",
       "    'tel': '020-61787331',\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFF2VMJ4',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号中山大学南方学院内',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院-综合楼',\n",
       "    'location': '113.680117,23.631544',\n",
       "    'distance': '142.466',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B0FFFTC9PH',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.193172',\n",
       "    'name': '中山大学南方学院教学楼10号',\n",
       "    'location': '113.680125,23.633492',\n",
       "    'distance': '132.988',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TQKX',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼6号',\n",
       "    'location': '113.678424,23.633710',\n",
       "    'distance': '153.818',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;学校'},\n",
       "   {'id': 'B00141TQGR',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼7号',\n",
       "    'location': '113.678600,23.633330',\n",
       "    'distance': '109.298',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B00141WQCO',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.14954',\n",
       "    'name': '中山大学南方学院教学楼8号',\n",
       "    'location': '113.680399,23.634329',\n",
       "    'distance': '225.543',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFG9IORM',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院内',\n",
       "    'poiweight': '0.287887',\n",
       "    'name': '中山大学南方学院-图书馆',\n",
       "    'location': '113.679177,23.632762',\n",
       "    'distance': '23.6163',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0FFKP9EQJ',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院4号实验楼',\n",
       "    'location': '113.679963,23.632652',\n",
       "    'distance': '69.4077',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJKIA10',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号中山大学南方学院',\n",
       "    'poiweight': '0.191691',\n",
       "    'name': '中山大学南方学院-第11教学楼',\n",
       "    'location': '113.680037,23.633173',\n",
       "    'distance': '101.294',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TRVH',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路21',\n",
       "    'poiweight': '0.148531',\n",
       "    'name': '中山大学南方学院教学楼2号',\n",
       "    'location': '113.677060,23.631346',\n",
       "    'distance': '264.846',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKERBQZ',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路7号附近',\n",
       "    'poiweight': '0.289141',\n",
       "    'name': '中山大学南方学院惟贤门',\n",
       "    'location': '113.678437,23.633721',\n",
       "    'distance': '154.082',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFKP81F4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '政商研究院教学楼9号',\n",
       "    'location': '113.679949,23.633919',\n",
       "    'distance': '163.951',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP9ET5',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院1号实验楼',\n",
       "    'location': '113.678215,23.631370',\n",
       "    'distance': '172.86',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00141TR76',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路29',\n",
       "    'poiweight': '0.052819',\n",
       "    'name': '中山大学南方学院教学楼4号',\n",
       "    'location': '113.677460,23.630490',\n",
       "    'distance': '297.315',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP7Q5N',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '中山大学南方学院2号实验楼',\n",
       "    'location': '113.678211,23.630956',\n",
       "    'distance': '210.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B00140TWHT',\n",
       "    'direction': '南',\n",
       "    'businessarea': [],\n",
       "    'address': '笃行路2号',\n",
       "    'poiweight': '0.157653',\n",
       "    'name': '教工住宅1号',\n",
       "    'location': '113.678490,23.630432',\n",
       "    'distance': '251.758',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0G3ARGF5Y',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286321',\n",
       "    'name': '中山大学南方学院教学楼1号',\n",
       "    'location': '113.677077,23.631783',\n",
       "    'distance': '241.753',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFLBEOND',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.190963',\n",
       "    'name': '聚贤楼10号',\n",
       "    'location': '113.681253,23.631036',\n",
       "    'distance': '263.444',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路19号附近',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '263.674',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '275.62',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJLW0O9',\n",
       "    'direction': '西',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路4附近',\n",
       "    'poiweight': '0.191645',\n",
       "    'name': '中山大学南方学院西区饭堂',\n",
       "    'location': '113.676210,23.632177',\n",
       "    'distance': '316.572',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFKPXMCN',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路',\n",
       "    'poiweight': '0.191739',\n",
       "    'name': '中山大学南方学院音乐系',\n",
       "    'location': '113.678792,23.635389',\n",
       "    'distance': '316.942',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0FFJBZLYT',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山路与博学路交叉口东南50米',\n",
       "    'poiweight': '0.297382',\n",
       "    'name': '铜像广场',\n",
       "    'location': '113.676921,23.634555',\n",
       "    'distance': '326.444',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;风景名胜'},\n",
       "   {'id': 'B0FFG8CSEK',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速(中山大学南方学院)',\n",
       "    'poiweight': '0.185371',\n",
       "    'name': 'L5员工宿舍',\n",
       "    'location': '113.682583,23.631487',\n",
       "    'distance': '356.923',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'},\n",
       "   {'id': 'B0FFKPXO2S',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路附近',\n",
       "    'poiweight': '0.188247',\n",
       "    'name': '中山大学南方学院医务室',\n",
       "    'location': '113.679394,23.635924',\n",
       "    'distance': '372.556',\n",
       "    'tel': [],\n",
       "    'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号中大南方H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '331.438',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0FFHHLMF8',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院明辩路2号第三饭堂',\n",
       "    'poiweight': '0.178935',\n",
       "    'name': '茗语轩餐厅',\n",
       "    'location': '113.681901,23.634495',\n",
       "    'distance': '341.332',\n",
       "    'tel': '13929501395;13533390928',\n",
       "    'type': '餐饮服务;中餐厅;中餐厅'},\n",
       "   {'id': 'B0FFLJV996',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.286264',\n",
       "    'name': '保利桃花源66BLOCK',\n",
       "    'location': '113.682954,23.631008',\n",
       "    'distance': '412.208',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0FFKPXY26',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '从莞深高速公路',\n",
       "    'poiweight': '0.21826',\n",
       "    'name': '中山大学南方学院聚贤楼5号',\n",
       "    'location': '113.680265,23.636313',\n",
       "    'distance': '427.447',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;商务住宅相关;商务住宅相关'},\n",
       "   {'id': 'B0FFGXGN3K',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '中山大学南方学院',\n",
       "    'poiweight': '0.188657',\n",
       "    'name': '中山大学南方学院宿舍H25',\n",
       "    'location': '113.683474,23.632020',\n",
       "    'distance': '430.984',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;宿舍'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['中', '山', '大', '学', '南', '方', '学', '院', '-', '图', '书', '馆']\n"
     ]
    }
   ],
   "source": [
    "a=[]\n",
    "for i in r.json()['regeocode']['pois'][6]['name']:\n",
    "    a.append(i)\n",
    "print(a)\n",
    "        "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [],
   "source": [
    "name=[]\n",
    "name.append(r.json()['regeocode']['pois'][0]['name'])\n",
    "name.append(r.json()['regeocode']['pois'][1]['name'])\n",
    "name.append(r.json()['regeocode']['pois'][2]['name'])\n",
    "name.append(r.json()['regeocode']['pois'][3]['name'])\n",
    "name.append(r.json()['regeocode']['pois'][4]['name'])\n",
    "name.append(r.json()['regeocode']['pois'][5]['name'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['中山大学南方学院', '中山大学南方学院-综合楼', '中山大学南方学院教学楼10号', '中山大学南方学院教学楼6号', '中山大学南方学院教学楼7号', '中山大学南方学院教学楼8号']\n"
     ]
    }
   ],
   "source": [
    "print(name)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 三、路径规划\n",
    ">* 1.定义:路径规划API是一套以HTTP形式提供的步行、公交、驾车查询及行驶距离计算接口，返回JSON 或 XML格式的查询数据，用于实现路径规划功能的开发  \n",
    "\n",
    ">* 应用场景：语音GPS导航/盲人专用的个性化定制语音导航耳机  \n",
    "\n",
    ">* A.url :https://restapi.amap.com/v3/geocode/geo?parameters\n",
    ">* B.requests.get()\n",
    ">* C.参数：\n",
    ">>* 必选：key，address,city,batch\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 数据准备： \n",
    "origin = \"113.679287,23.632575\" \n",
    "destination = \"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [],
   "source": [
    "def geocode(key,address,city=None,batch=None)->str:\n",
    "    \"\"\"获取高德API的地理编码\n",
    "    注释：key是指高德API的秘钥，请先去注册\n",
    "          address是指结构化地址，具体请查看：https://lbs.amap.com/api/webservice/guide/api/georegeo   \n",
    "    \"\"\"\n",
    "    url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "    params = {\n",
    "        \"key\":zhuang_key,\n",
    "        \"address\":address,\n",
    "        \"city\":city,\n",
    "        \"batch\":batch\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    results = response.json()['geocodes'][0]['location']\n",
    "    # 返回值\n",
    "    return results\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': [],\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440100',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.264434,23.129162',\n",
       "   'level': '市'}]}"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.679287,23.632575'"
      ]
     },
     "execution_count": 46,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "起始点_中大南方 = origin\n",
    "起始点_中大南方"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.264434,23.129162'"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "目的地_长隆 = destination\n",
    "目的地_长隆"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 四、 步行 \n",
    "> * 定义：路径规划API是一套以HTTP形式提供的步行、公交、驾车查询及行驶距离计算接口，返回JSON 或 XML格式的查询数据，用于实现路径规划功能的开发。  \n",
    "\n",
    ">* 应用场景：校内竞走或有关行走路线的体育比赛 /校内或较小区域内的产品内嵌导航功能  \n",
    "\n",
    "> * 1、url:https://restapi.amap.com/v3/direction/walking?parameters    > * 2、requests.get()\n",
    "> * 3、参数：\n",
    "> * A.必选：key，origin（出发点（经度，纬度））,destination（目的地（经度，纬度））\n",
    "> * B.可选：callback,output,sig"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 步行\n",
    "url = \"https://restapi.amap.com/v3/direction/walking?parameters\"\n",
    "params = {\n",
    "    \"key\":zhuang_key,\n",
    "    \"origin\":起始点_中大南方,\n",
    "    \"destination\":目的地_长隆\n",
    "}\n",
    "r = requests.get(url,params)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'distance': '77997',\n",
       "  'duration': '62398',\n",
       "  'steps': [{'instruction': '向东步行101米右转',\n",
       "    'orientation': '东',\n",
       "    'road': [],\n",
       "    'distance': '101',\n",
       "    'duration': '81',\n",
       "    'polyline': '113.679592,23.632491;113.680586,23.632522',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行199米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '199',\n",
       "    'duration': '159',\n",
       "    'polyline': '113.680586,23.632522;113.680638,23.63214;113.680668,23.63174;113.680634,23.631541;113.68059,23.631437;113.68059,23.631437;113.680499,23.631241;113.680408,23.631094;113.680208,23.630842',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西步行159米左转',\n",
       "    'orientation': '西',\n",
       "    'road': [],\n",
       "    'distance': '159',\n",
       "    'duration': '127',\n",
       "    'polyline': '113.680204,23.630838;113.680035,23.630773;113.680035,23.630773;113.679644,23.630638;113.679644,23.630638;113.679362,23.630521;113.679201,23.630473;113.679201,23.630473;113.679032,23.63043;113.679032,23.63043;113.67888,23.630404;113.67888,23.630404;113.678711,23.630365',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行237米左转',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '237',\n",
       "    'duration': '190',\n",
       "    'polyline': '113.678711,23.63036;113.678711,23.62934;113.678711,23.62934;113.678711,23.629193;113.678689,23.629084;113.678637,23.629023;113.678424,23.628902;113.678368,23.628841;113.678316,23.628724;113.678294,23.628611;113.678294,23.628611;113.678277,23.628372',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向南步行498米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': [],\n",
       "    'distance': '498',\n",
       "    'duration': '398',\n",
       "    'polyline': '113.678273,23.628368;113.678572,23.628338;113.678685,23.628307;113.678685,23.628307;113.678845,23.628234;113.679045,23.628073;113.679158,23.627964;113.679158,23.627964;113.679214,23.627869;113.679236,23.627778;113.67928,23.627526;113.679288,23.627322;113.679288,23.627322;113.679253,23.626853;113.679184,23.626623;113.679141,23.626497;113.679002,23.626259;113.678941,23.626176;113.678711,23.625977;113.67862,23.625864;113.678529,23.62572;113.678438,23.625191;113.678429,23.625056;113.678451,23.624939;113.678572,23.624657',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西南步行722米左转',\n",
       "    'orientation': '西南',\n",
       "    'road': [],\n",
       "    'distance': '722',\n",
       "    'duration': '578',\n",
       "    'polyline': '113.678572,23.624653;113.678559,23.62451;113.678416,23.624323;113.678416,23.624323;113.677582,23.623793;113.676532,23.623346;113.676363,23.623255;113.676272,23.623151;113.676111,23.622834;113.676042,23.622739;113.67579,23.622483;113.675499,23.622279;113.675417,23.622174;113.675386,23.622088;113.675378,23.621836;113.675378,23.621836;113.675391,23.62161;113.675434,23.621476;113.675543,23.621359;113.675764,23.621181;113.675846,23.621089;113.675903,23.620994;113.675907,23.620855;113.675877,23.620725;113.675747,23.620547;113.675599,23.620373;113.675243,23.620013',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向东南步行412米向右前方行走',\n",
       "    'orientation': '东南',\n",
       "    'road': [],\n",
       "    'distance': '412',\n",
       "    'duration': '330',\n",
       "    'polyline': '113.675239,23.620009;113.67549,23.620013;113.675642,23.619991;113.675773,23.619948;113.676016,23.619796;113.676901,23.619193;113.677261,23.618785;113.678069,23.61783;113.678069,23.61783;113.678181,23.617656',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿乌土街向南步行1381米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '乌土街',\n",
       "    'distance': '1381',\n",
       "    'duration': '1105',\n",
       "    'polyline': '113.678181,23.617652;113.678095,23.617205;113.678051,23.617075;113.677973,23.616923;113.677743,23.616558;113.677609,23.616289;113.677391,23.615816;113.677339,23.615668;113.67714,23.614826;113.677049,23.614323;113.676927,23.613359;113.676845,23.612786;113.676602,23.611489;113.676415,23.610438;113.676411,23.610265;113.676411,23.610265;113.676489,23.609848;113.676502,23.609622;113.676493,23.609236;113.676415,23.608746;113.676415,23.608485;113.67648,23.60819;113.67661,23.607734;113.676819,23.606736;113.676862,23.606541;113.676914,23.606415;113.677014,23.606254;113.677535,23.605673',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿乌土街向西南步行165米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '乌土街',\n",
       "    'distance': '165',\n",
       "    'duration': '132',\n",
       "    'polyline': '113.677535,23.605668;113.676988,23.605373;113.676402,23.605;113.676163,23.604887',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿934县道向西步行118米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '934县道',\n",
       "    'distance': '118',\n",
       "    'duration': '94',\n",
       "    'polyline': '113.676159,23.604883;113.675799,23.604805;113.675508,23.604779;113.675508,23.604779;113.675013,23.60474',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园东路向西南步行674米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园东路',\n",
       "    'distance': '674',\n",
       "    'duration': '539',\n",
       "    'polyline': '113.675009,23.604735;113.674236,23.604683;113.673893,23.604618;113.673464,23.604492;113.673464,23.604492;113.67168,23.604006;113.671541,23.603958;113.671411,23.603854;113.671068,23.603472;113.670807,23.603264;113.670807,23.603264;113.670525,23.603073;113.6702,23.602904;113.6702,23.602904;113.670022,23.602795;113.670022,23.602795;113.669909,23.602682;113.669818,23.602517;113.669787,23.602413;113.669718,23.601901',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园东路向西南步行247米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园东路',\n",
       "    'distance': '247',\n",
       "    'duration': '198',\n",
       "    'polyline': '113.669714,23.601897;113.66964,23.601771;113.66964,23.601771;113.669488,23.601558;113.669488,23.601558;113.668789,23.600859;113.668663,23.600768;113.668663,23.600768;113.668442,23.600647;113.667947,23.600417',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿桃园西路向西南步行2775米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '桃园西路',\n",
       "    'distance': '2775',\n",
       "    'duration': '2220',\n",
       "    'polyline': '113.667943,23.600412;113.667331,23.600139;113.667331,23.600139;113.666224,23.599644;113.665955,23.599505;113.665955,23.599505;113.665781,23.599362;113.665781,23.599362;113.665521,23.599093;113.665521,23.599093;113.665286,23.598824;113.665286,23.598824;113.665256,23.598785;113.665256,23.598785;113.664796,23.598238;113.664796,23.598238;113.664401,23.597622;113.664401,23.597622;113.664071,23.59714;113.663746,23.59678;113.663746,23.59678;113.663477,23.59651;113.663477,23.59651;113.66224,23.595434;113.66224,23.595434;113.661563,23.594848;113.661563,23.594848;113.661311,23.594605;113.66115,23.594414;113.660907,23.594032;113.660907,23.594032;113.660829,23.593889;113.660729,23.593598;113.660547,23.593025;113.660464,23.592804;113.660464,23.592804;113.659931,23.591593;113.659831,23.591393;113.659631,23.59105;113.659631,23.59105;113.659115,23.59023;113.658824,23.589592;113.658824,23.589592;113.658754,23.589405;113.658754,23.589405;113.657817,23.58714;113.657747,23.586936;113.657695,23.586693;113.657548,23.585369;113.657548,23.585369;113.657483,23.585161;113.657326,23.584896;113.657326,23.584896;113.657114,23.58457;113.657062,23.584453;113.65691,23.583924;113.656884,23.583785;113.656879,23.583681;113.656888,23.583572;113.656979,23.58326;113.657066,23.58303;113.657157,23.582852;113.657378,23.582539;113.657431,23.582444;113.65747,23.582344;113.657483,23.582235;113.657483,23.582109;113.657435,23.580777;113.657405,23.580616;113.657405,23.580616;113.657296,23.580308;113.657244,23.580221;113.656723,23.579644;113.656723,23.579644;113.656597,23.579488;113.656411,23.579362',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿石海工业大道向西南步行1838米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '石海工业大道',\n",
       "    'distance': '1838',\n",
       "    'duration': '1470',\n",
       "    'polyline': '113.656406,23.579358;113.656055,23.57931;113.656055,23.57931;113.655091,23.579089;113.654918,23.579023;113.654566,23.57885;113.654566,23.57885;113.653681,23.578372;113.653681,23.578372;113.653429,23.578247;113.653429,23.578247;113.652713,23.577865;113.652713,23.577865;113.652452,23.577704;113.652001,23.577387;113.652001,23.577387;113.651654,23.577105;113.651654,23.577105;113.651437,23.57694;113.651437,23.57694;113.650681,23.576332;113.650681,23.576332;113.650378,23.576094;113.650378,23.576094;113.649674,23.575534;113.649674,23.575534;113.649583,23.575451;113.649583,23.575451;113.64924,23.575182;113.64924,23.575182;113.647409,23.573754;113.647409,23.573754;113.647279,23.573641;113.646793,23.573155;113.646793,23.573155;113.64661,23.57296;113.64661,23.57296;113.646419,23.572778;113.646419,23.572778;113.646202,23.572565;113.645968,23.57237;113.645252,23.571866;113.645252,23.571866;113.644974,23.571732;113.644974,23.571732;113.644883,23.571706;113.644618,23.571671;113.643967,23.571675;113.643967,23.571675;113.643511,23.57168;113.643511,23.57168;113.64329,23.57168;113.643047,23.571654;113.64293,23.571632;113.642548,23.571502;113.642326,23.571411;113.641979,23.571228;113.641636,23.571003;113.641636,23.571003;113.641437,23.57082',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿政通路向西南步行2161米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '政通路',\n",
       "    'distance': '2161',\n",
       "    'duration': '1729',\n",
       "    'polyline': '113.641432,23.570816;113.641168,23.570525;113.641168,23.570525;113.640964,23.570265;113.640864,23.570156;113.640864,23.570156;113.640651,23.569978;113.640408,23.569822;113.638902,23.569006;113.638902,23.569006;113.638398,23.568746;113.638056,23.568611;113.637695,23.568529;113.637431,23.568507;113.637209,23.568516;113.637209,23.568516;113.636836,23.568576;113.636836,23.568576;113.636484,23.568676;113.636484,23.568676;113.635334,23.569058;113.633754,23.569614;113.633485,23.569674;113.633251,23.569692;113.633251,23.569692;113.633069,23.569688;113.633069,23.569688;113.632778,23.569635;113.632378,23.569492;113.631992,23.569319;113.631853,23.569223;113.631801,23.569158;113.631701,23.568997;113.631441,23.568338;113.631441,23.568338;113.63128,23.567947;113.63128,23.567947;113.63122,23.567834;113.631089,23.567656;113.630946,23.567526;113.630768,23.567387;113.630768,23.567387;113.630456,23.567157;113.630456,23.567157;113.630113,23.566884;113.630113,23.566884;113.629596,23.566458;113.629063,23.565799;113.628359,23.565174;113.62826,23.565026;113.62806,23.564592;113.627665,23.56395;113.627574,23.563815;113.627413,23.56365;113.626576,23.563003;113.626254,23.562804;113.625964,23.562682;113.624987,23.562365',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿灌村路向西步行781米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '灌村路',\n",
       "    'distance': '781',\n",
       "    'duration': '625',\n",
       "    'polyline': '113.624983,23.562361;113.624431,23.562183;113.62349,23.56191;113.623216,23.561771;113.623003,23.561593;113.622661,23.561185;113.622049,23.560525;113.621936,23.560421;113.621775,23.560317;113.621515,23.560226;113.620226,23.559926;113.619579,23.559761;113.619427,23.559744;113.619427,23.559744;113.619188,23.559731;113.619188,23.559731;113.618555,23.559796;113.618355,23.559839;113.618251,23.559887',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿环市东路向西南步行1582米',\n",
       "    'orientation': '西南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '1582',\n",
       "    'duration': '1266',\n",
       "    'polyline': '113.618247,23.559887;113.617626,23.559271;113.617626,23.559271;113.615794,23.557474;113.615794,23.557474;113.615213,23.556905;113.615213,23.556905;113.614818,23.556515;113.614818,23.556515;113.614093,23.55579;113.614093,23.55579;113.613832,23.55549;113.613832,23.55549;113.613628,23.555217;113.613628,23.555217;113.613429,23.554926;113.613429,23.554926;113.613138,23.554418;113.612778,23.553516;113.612778,23.553516;113.612756,23.553442;113.612756,23.553442;113.612682,23.553251;113.612682,23.553251;113.612656,23.553181;113.612656,23.553181;113.612344,23.552339;113.612344,23.552339;113.612192,23.551949;113.612192,23.551949;113.61207,23.551658;113.611888,23.551354;113.611606,23.550968;113.611476,23.550812;113.611246,23.550577;113.610551,23.55;113.610551,23.55;113.610065,23.549609;113.610065,23.549609;113.609514,23.549162;113.609514,23.549162;113.609071,23.548746;113.609071,23.548746;113.608971,23.548641',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿环市东路向南步行1626米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '1626',\n",
       "    'duration': '1301',\n",
       "    'polyline': '113.608967,23.548637;113.608707,23.548247;113.608537,23.547921;113.608537,23.547921;113.608416,23.547526;113.608364,23.547266;113.608364,23.547266;113.608333,23.54697;113.608333,23.54697;113.608264,23.546155;113.608264,23.546155;113.608225,23.545664;113.608216,23.545061;113.608273,23.544501;113.608333,23.54418;113.608333,23.54418;113.608359,23.544054;113.608359,23.544054;113.60849,23.54342;113.60849,23.54342;113.608533,23.543199;113.608533,23.543199;113.608906,23.541484;113.608906,23.541484;113.609097,23.540564;113.609097,23.540564;113.609297,23.539661;113.609297,23.539661;113.609497,23.538685;113.609557,23.538307;113.609557,23.538307;113.609601,23.537635;113.609601,23.537635;113.609601,23.537166;113.609553,23.536536;113.609553,23.536536;113.609453,23.535916;113.60928,23.535252;113.608872,23.534223',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿从樟一路向西步行14米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '从樟一路',\n",
       "    'distance': '14',\n",
       "    'duration': '11',\n",
       "    'polyline': '113.608867,23.534219;113.608737,23.534223',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿环市东路向西南步行1098米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '1098',\n",
       "    'duration': '878',\n",
       "    'polyline': '113.608733,23.534223;113.608242,23.53299;113.608242,23.53299;113.608012,23.532448;113.608012,23.532448;113.607799,23.531914;113.607799,23.531914;113.607682,23.531628;113.607682,23.531628;113.607248,23.530551;113.607248,23.530551;113.606988,23.529931;113.606988,23.529931;113.606866,23.529688;113.606866,23.529688;113.606645,23.529345;113.606484,23.529145;113.606484,23.529145;113.606385,23.529032;113.606385,23.529032;113.606128,23.52878;113.605898,23.528581;113.605898,23.528581;113.604952,23.527786;113.604952,23.527786;113.604388,23.527331;113.604388,23.527331;113.603563,23.526636;113.603563,23.526636;113.60329,23.526636;113.60329,23.526636;113.603199,23.526636;113.603199,23.526636;113.603194,23.526641;113.603207,23.526484;113.603207,23.526484;113.603216,23.526311;113.603216,23.526311;113.603142,23.526233',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行24米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '24',\n",
       "    'duration': '19',\n",
       "    'polyline': '113.603138,23.526228;113.602908,23.526289',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿环市东路步行79米向右前方行走',\n",
       "    'orientation': [],\n",
       "    'road': '环市东路',\n",
       "    'distance': '79',\n",
       "    'duration': '63',\n",
       "    'polyline': '113.602904,23.526289;113.602886,23.526141;113.602769,23.525777;113.602769,23.525777;113.602656,23.525621',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿从城大道步行52米左转',\n",
       "    'orientation': [],\n",
       "    'road': '从城大道',\n",
       "    'distance': '52',\n",
       "    'duration': '42',\n",
       "    'polyline': '113.602652,23.525616;113.602448,23.52549;113.602244,23.525399;113.602244,23.525399;113.602205,23.525391',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行31米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '31',\n",
       "    'duration': '25',\n",
       "    'polyline': '113.602201,23.525386;113.60227,23.525109',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿环市东路向西南步行21米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '环市东路',\n",
       "    'distance': '21',\n",
       "    'duration': '17',\n",
       "    'polyline': '113.60227,23.525104;113.602153,23.524944',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行39米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '39',\n",
       "    'duration': '31',\n",
       "    'polyline': '113.602148,23.524939;113.601771,23.52487',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿从城大道向南步行44米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '从城大道',\n",
       "    'distance': '44',\n",
       "    'duration': '35',\n",
       "    'polyline': '113.601766,23.524865;113.60178,23.524722;113.60178,23.524722;113.60178,23.524457',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西步行1988米',\n",
       "    'orientation': '西',\n",
       "    'road': '广从公路',\n",
       "    'distance': '1988',\n",
       "    'duration': '1590',\n",
       "    'polyline': '113.60178,23.524453;113.601602,23.524219;113.601602,23.524219;113.601337,23.523876;113.601189,23.523715;113.601189,23.523715;113.600885,23.523455;113.600634,23.523286;113.600634,23.523286;113.60033,23.523138;113.599961,23.523012;113.599705,23.522951;113.599123,23.522891;113.599123,23.522891;113.597977,23.522799;113.597977,23.522799;113.597179,23.522734;113.597179,23.522734;113.595959,23.522635;113.595959,23.522635;113.595386,23.522595;113.595386,23.522595;113.594813,23.522556;113.594813,23.522556;113.59388,23.522483;113.59388,23.522483;113.593585,23.522457;113.593585,23.522457;113.591866,23.522322;113.591866,23.522322;113.591775,23.522309;113.591775,23.522309;113.591684,23.522305;113.591684,23.522305;113.591107,23.522261;113.590538,23.522174;113.590538,23.522174;113.590052,23.522075;113.590052,23.522075;113.589579,23.521949;113.589579,23.521949;113.589266,23.521845;113.589266,23.521845;113.589167,23.52181;113.589167,23.52181;113.588542,23.521554;113.588108,23.521341;113.588108,23.521341;113.587556,23.521024;113.587292,23.520846;113.58681,23.520482;113.586428,23.520174;113.586428,23.520174;113.586033,23.519852;113.585642,23.519527;113.585642,23.519527;113.584674,23.518733;113.584674,23.518733;113.584536,23.51862;113.584536,23.51862;113.584245,23.518372',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行1641米',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '1641',\n",
       "    'duration': '1313',\n",
       "    'polyline': '113.58424,23.518368;113.582973,23.517313;113.582973,23.517313;113.582127,23.516619;113.582127,23.516619;113.581875,23.516393;113.581875,23.516393;113.581749,23.516289;113.581749,23.516289;113.581241,23.515868;113.581241,23.515868;113.580868,23.515551;113.580868,23.515551;113.58069,23.515412;113.58069,23.515412;113.580056,23.514913;113.580056,23.514913;113.579683,23.514666;113.579332,23.514466;113.579102,23.514353;113.579102,23.514353;113.578585,23.514141;113.577014,23.513589;113.577014,23.513589;113.57671,23.513481;113.57671,23.513481;113.576007,23.513234;113.576007,23.513234;113.575386,23.513003;113.574436,23.512595;113.574436,23.512595;113.573963,23.512365;113.573963,23.512365;113.57303,23.511823;113.572405,23.511406;113.572405,23.511406;113.571549,23.510825;113.571549,23.510825;113.57148,23.510773;113.57148,23.510773;113.571228,23.510569;113.570924,23.51026',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行4523米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '4523',\n",
       "    'duration': '3618',\n",
       "    'polyline': '113.57092,23.510256;113.57066,23.509974;113.570421,23.509674;113.570239,23.509418;113.569484,23.50819;113.569484,23.50819;113.569336,23.507934;113.569336,23.507934;113.568741,23.506966;113.568741,23.506966;113.568498,23.506571;113.568498,23.506571;113.567865,23.505543;113.567865,23.505543;113.56753,23.505074;113.56753,23.505074;113.567218,23.504731;113.566897,23.504436;113.566897,23.504436;113.566593,23.504206;113.566133,23.503919;113.56569,23.503707;113.565035,23.503451;113.565035,23.503451;113.563542,23.502873;113.563542,23.502873;113.562318,23.502409;113.562318,23.502409;113.560043,23.501541;113.560043,23.501541;113.559792,23.50145;113.559792,23.50145;113.559466,23.501324;113.559466,23.501324;113.559084,23.501172;113.559084,23.501172;113.55822,23.500846;113.55822,23.500846;113.557804,23.500686;113.557804,23.500686;113.557352,23.500473;113.557352,23.500473;113.557153,23.500365;113.556697,23.500069;113.556376,23.499831;113.555477,23.499058;113.555477,23.499058;113.554996,23.498685;113.554536,23.498381;113.554536,23.498381;113.554119,23.498134;113.554119,23.498134;113.553746,23.497921;113.553746,23.497921;113.552691,23.497357;113.552691,23.497357;113.550378,23.49612;113.550378,23.49612;113.548798,23.49526;113.548798,23.49526;113.548641,23.495178;113.548641,23.495178;113.547365,23.494488;113.546801,23.494223;113.546801,23.494223;113.546298,23.49398;113.546298,23.49398;113.545612,23.493594;113.54549,23.493485;113.54549,23.493485;113.545464,23.493464;113.545464,23.493464;113.545304,23.49332;113.545304,23.49332;113.544918,23.492977;113.544414,23.492574;113.543589,23.491997;113.543589,23.491997;113.542947,23.491532;113.542947,23.491532;113.542339,23.49112;113.54194,23.490933;113.541306,23.49072;113.541306,23.49072;113.541246,23.490699;113.541246,23.490699;113.538919,23.490109;113.538919,23.490109;113.536541,23.489505;113.536541,23.489505;113.53612,23.489401;113.53612,23.489401;113.535508,23.48924;113.535508,23.48924;113.535313,23.489188;113.535313,23.489188;113.534831,23.489062;113.534436,23.488932',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从北路向西南步行337米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从北路',\n",
       "    'distance': '337',\n",
       "    'duration': '270',\n",
       "    'polyline': '113.534431,23.488928;113.533663,23.488628;113.533663,23.488628;113.53316,23.488381;113.53316,23.488381;113.532626,23.488086;113.532626,23.488086;113.532092,23.487734;113.531602,23.487357',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从北路辅路向西南步行369米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从北路辅路',\n",
       "    'distance': '369',\n",
       "    'duration': '295',\n",
       "    'polyline': '113.531597,23.487352;113.531398,23.48727;113.530994,23.486888;113.530994,23.486888;113.530564,23.486415;113.529544,23.48513;113.529544,23.48513;113.529362,23.484887;113.529362,23.484887;113.529297,23.4848',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向西南步行343米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '343',\n",
       "    'duration': '274',\n",
       "    'polyline': '113.529297,23.484796;113.529054,23.484492;113.529054,23.484492;113.528368,23.483602;113.528056,23.483225;113.528056,23.483225;113.527704,23.482786;113.527704,23.482786;113.527461,23.48247;113.527422,23.482235',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行268米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '268',\n",
       "    'duration': '214',\n",
       "    'polyline': '113.527418,23.482231;113.526241,23.48069;113.526241,23.48069;113.525911,23.480247',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行885米',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '885',\n",
       "    'duration': '708',\n",
       "    'polyline': '113.525907,23.480243;113.525903,23.480243;113.525903,23.480243;113.524952,23.479093;113.524614,23.47875;113.524362,23.47852;113.524067,23.478286;113.524067,23.478286;113.523798,23.478103;113.523455,23.477899;113.522478,23.477357;113.522478,23.477357;113.521037,23.476562;113.521037,23.476562;113.520417,23.476228;113.520417,23.476228;113.519822,23.475951;113.519436,23.475807;113.518954,23.475673',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向西步行755米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '755',\n",
       "    'duration': '604',\n",
       "    'polyline': '113.51895,23.475668;113.518589,23.475651;113.518016,23.475477;113.518016,23.475477;113.517548,23.47533;113.517548,23.47533;113.517496,23.475313;113.517496,23.475313;113.517322,23.475252;113.517322,23.475252;113.517122,23.475195;113.517122,23.475195;113.516085,23.474865;113.516085,23.474865;113.515734,23.474761;113.515734,23.474761;113.515551,23.474701;113.515551,23.474701;113.515382,23.474648;113.515382,23.474648;113.515321,23.474627;113.515321,23.474627;113.515056,23.474544;113.515056,23.474544;113.513468,23.474045;113.513468,23.474045;113.512161,23.473655;113.511949,23.473464',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行3129米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '3129',\n",
       "    'duration': '2503',\n",
       "    'polyline': '113.511944,23.473459;113.511285,23.473264;113.511285,23.473264;113.510265,23.472943;113.509523,23.472682;113.508203,23.472122;113.507847,23.471944;113.507847,23.471944;113.50776,23.471901;113.50776,23.471901;113.506823,23.471419;113.506823,23.471419;113.505334,23.470642;113.505334,23.470642;113.504918,23.470417;113.504918,23.470417;113.503503,23.469696;113.503503,23.469696;113.502773,23.469314;113.502773,23.469314;113.501849,23.468832;113.501849,23.468832;113.501076,23.468424;113.500851,23.46829;113.500421,23.467995;113.50013,23.467747;113.50013,23.467747;113.499813,23.467413;113.499544,23.467096;113.499544,23.467096;113.499332,23.46678;113.499093,23.466341;113.499093,23.466341;113.498437,23.464965;113.498437,23.464965;113.497543,23.463077;113.497543,23.463077;113.496723,23.461376;113.496554,23.461068;113.496302,23.46069;113.496302,23.46069;113.49615,23.460486;113.49615,23.460486;113.496029,23.460334;113.496029,23.460334;113.495243,23.459384;113.495243,23.459384;113.494883,23.458963;113.494883,23.458963;113.494362,23.458346;113.494362,23.458346;113.49411,23.458034;113.49411,23.458034;113.494019,23.457921;113.494019,23.457921;113.493715,23.457496;113.493715,23.457496;113.493555,23.457261;113.493555,23.457261;113.493411,23.457027;113.493411,23.457027;113.493203,23.456654;113.493008,23.456259;113.492695,23.455512;113.492496,23.454891;113.492188,23.453681',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向南步行1228米向左前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '1228',\n",
       "    'duration': '982',\n",
       "    'polyline': '113.492188,23.453676;113.492083,23.453555;113.491923,23.452882;113.491862,23.452591;113.491862,23.452591;113.491762,23.452144;113.491762,23.452144;113.49174,23.452036;113.49174,23.452036;113.491593,23.451398;113.491593,23.451398;113.491489,23.450955;113.491489,23.450955;113.491328,23.450256;113.491328,23.450256;113.491298,23.450126;113.491298,23.450126;113.491146,23.449401;113.491146,23.449401;113.490747,23.447574;113.490747,23.447574;113.490664,23.447196;113.490664,23.447196;113.490634,23.447049;113.490634,23.447049;113.490495,23.446497;113.490495,23.446497;113.490443,23.446233;113.490443,23.446233;113.490404,23.446094;113.490404,23.446094;113.490152,23.444961;113.490152,23.444961;113.489931,23.443876;113.489931,23.443876;113.489757,23.443073;113.489757,23.443073;113.489688,23.442773',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向南步行20米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '20',\n",
       "    'duration': '16',\n",
       "    'polyline': '113.489683,23.442769;113.489744,23.4426',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行1230米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '1230',\n",
       "    'duration': '984',\n",
       "    'polyline': '113.489744,23.442595;113.489579,23.441823;113.489579,23.441823;113.489475,23.441367;113.489475,23.441367;113.489236,23.440299;113.489236,23.440299;113.489093,23.4398;113.488893,23.439301;113.488893,23.439301;113.488741,23.438967;113.488451,23.438442;113.488095,23.437943;113.487765,23.437556;113.487765,23.437556;113.487496,23.437279;113.487496,23.437279;113.48701,23.436819;113.48701,23.436819;113.486016,23.435851;113.486016,23.435851;113.485729,23.435582;113.485729,23.435582;113.485499,23.435373;113.485499,23.435373;113.485417,23.435282;113.485417,23.435282;113.485148,23.43503;113.485148,23.43503;113.484032,23.434019;113.484032,23.434019;113.483806,23.433815;113.483806,23.433815;113.483537,23.433589;113.483537,23.433589;113.483446,23.433524;113.483446,23.433524;113.483394,23.433485',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向西南步行484米右转',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '484',\n",
       "    'duration': '387',\n",
       "    'polyline': '113.48339,23.433481;113.483116,23.433359;113.483116,23.433359;113.482921,23.433255;113.482639,23.433051;113.482639,23.433051;113.482109,23.432613;113.482109,23.432613;113.481463,23.432057;113.481463,23.432057;113.481363,23.431979;113.481363,23.431979;113.480686,23.431367;113.480686,23.431367;113.480564,23.431211;113.480564,23.431211;113.480434,23.431059;113.480434,23.431059;113.480317,23.430916;113.480317,23.430916;113.480052,23.430538;113.480052,23.430538;113.48,23.430456',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿太平西路向西步行26米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '太平西路',\n",
       "    'distance': '26',\n",
       "    'duration': '21',\n",
       "    'polyline': '113.479996,23.430451;113.479748,23.430516',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路步行443米向左前方行走',\n",
       "    'orientation': [],\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '443',\n",
       "    'duration': '354',\n",
       "    'polyline': '113.479744,23.430516;113.479826,23.430447;113.479839,23.430308;113.479839,23.430308;113.4798,23.430139;113.4798,23.430139;113.479366,23.429405;113.478785,23.428385;113.478785,23.428385;113.478481,23.427843;113.478481,23.427843;113.478099,23.427201;113.477951,23.426975',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路辅路向南步行74米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '广从南路辅路',\n",
       "    'distance': '74',\n",
       "    'duration': '59',\n",
       "    'polyline': '113.477947,23.42697;113.477726,23.426328',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从南路向西南步行332米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从南路',\n",
       "    'distance': '332',\n",
       "    'duration': '266',\n",
       "    'polyline': '113.477721,23.426324;113.477695,23.426259;113.477695,23.426259;113.477595,23.426037;113.476832,23.424761;113.476832,23.424761;113.476345,23.42395;113.476345,23.42395;113.476176,23.423672',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行5187米',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '5187',\n",
       "    'duration': '4150',\n",
       "    'polyline': '113.476172,23.423668;113.475825,23.42309;113.475825,23.42309;113.475681,23.422843;113.475681,23.422843;113.475321,23.422248;113.475321,23.422248;113.47497,23.421667;113.47497,23.421667;113.474826,23.421419;113.474826,23.421419;113.474618,23.421089;113.474618,23.421089;113.474284,23.420525;113.474284,23.420525;113.47395,23.419957;113.47395,23.419957;113.473741,23.419701;113.473741,23.419701;113.473633,23.419579;113.473633,23.419579;113.47342,23.419319;113.47342,23.419319;113.473316,23.419197;113.473316,23.419197;113.473255,23.419132;113.473255,23.419132;113.472977,23.418832;113.472977,23.418832;113.472886,23.418741;113.472886,23.418741;113.472574,23.418442;113.472574,23.418442;113.471554,23.417587;113.469822,23.416198;113.468546,23.415113;113.467409,23.414128;113.467409,23.414128;113.466562,23.413438;113.466562,23.413438;113.466259,23.413181;113.466259,23.413181;113.465577,23.412617;113.465577,23.412617;113.464983,23.412096;113.464983,23.412096;113.464501,23.411697;113.464501,23.411697;113.464245,23.411467;113.464076,23.411337;113.464076,23.411337;113.463772,23.411102;113.463772,23.411102;113.463451,23.41079;113.463451,23.41079;113.462886,23.410382;113.462886,23.410382;113.461801,23.409583;113.461801,23.409583;113.461558,23.409388;113.461558,23.409388;113.461406,23.409262;113.461406,23.409262;113.461076,23.408971;113.460655,23.408533;113.460655,23.408533;113.459987,23.407704;113.459987,23.407704;113.4599,23.407604;113.4599,23.407604;113.458589,23.405911;113.458589,23.405911;113.457591,23.404709;113.457591,23.404709;113.457292,23.404336;113.457292,23.404336;113.457031,23.404002;113.457031,23.404002;113.456927,23.403863;113.456927,23.403863;113.456523,23.403342;113.456523,23.403342;113.455981,23.402652;113.455981,23.402652;113.455586,23.402096;113.455586,23.402096;113.455395,23.401836;113.455395,23.401836;113.455226,23.401615;113.455226,23.401615;113.455187,23.401563;113.455187,23.401563;113.454891,23.401163;113.454891,23.401163;113.454553,23.400703;113.454553,23.400703;113.454201,23.400208;113.454201,23.400208;113.454058,23.4;113.454058,23.4;113.453346,23.398924;113.453346,23.398924;113.45276,23.397973;113.45276,23.397973;113.4527,23.397878;113.4527,23.397878;113.452622,23.397739;113.452622,23.397739;113.452448,23.397452;113.452448,23.397452;113.452027,23.39674;113.452027,23.39674;113.451141,23.395243;113.451141,23.395243;113.450898,23.394835;113.450898,23.394835;113.450417,23.394036;113.450417,23.394036;113.45023,23.393715;113.45023,23.393715;113.449748,23.392925;113.449748,23.392925;113.44944,23.392487;113.449206,23.392187;113.448893,23.39184;113.448594,23.391554;113.448594,23.391554;113.448268,23.391263;113.447869,23.390951;113.447869,23.390951;113.447222,23.390534;113.446879,23.390343;113.446549,23.390187;113.446549,23.390187;113.446055,23.389974;113.446055,23.389974;113.445399,23.389744;113.443164,23.389049',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路辅路向西南步行942米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路辅路',\n",
       "    'distance': '942',\n",
       "    'duration': '754',\n",
       "    'polyline': '113.44316,23.389045;113.442773,23.388989;113.442773,23.388989;113.442439,23.388902;113.441944,23.388741;113.440898,23.388268;113.440898,23.388268;113.440135,23.387899;113.440135,23.387899;113.439358,23.387535;113.439358,23.387535;113.438663,23.387187;113.438663,23.387187;113.437691,23.386714;113.437691,23.386714;113.436128,23.385964;113.435595,23.38569;113.435595,23.38569;113.435109,23.385438;113.434931,23.38526',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西步行2044米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '广从公路',\n",
       "    'distance': '2044',\n",
       "    'duration': '1635',\n",
       "    'polyline': '113.434926,23.385256;113.434479,23.385078;113.434479,23.385078;113.434062,23.384944;113.43372,23.384852;113.43372,23.384852;113.433472,23.384809;113.433472,23.384809;113.432969,23.384744;113.432969,23.384744;113.432682,23.384731;113.432682,23.384731;113.432062,23.384714;113.432062,23.384714;113.432018,23.384714;113.432018,23.384714;113.431276,23.384692;113.431276,23.384692;113.430742,23.384679;113.430742,23.384679;113.430269,23.38467;113.430269,23.38467;113.429514,23.384657;113.429514,23.384657;113.428898,23.384644;113.428898,23.384644;113.428589,23.38464;113.428589,23.38464;113.427643,23.384614;113.427643,23.384614;113.427348,23.384609;113.427348,23.384609;113.426944,23.384605;113.426944,23.384605;113.426914,23.384605;113.426914,23.384605;113.426745,23.384601;113.426745,23.384601;113.426393,23.384588;113.426393,23.384588;113.426241,23.384588;113.426241,23.384588;113.425981,23.384583;113.425981,23.384583;113.425417,23.384566;113.425417,23.384566;113.425152,23.384557;113.425152,23.384557;113.424358,23.38451;113.424358,23.38451;113.423924,23.384453;113.423924,23.384453;113.423168,23.38431;113.423168,23.38431;113.423043,23.384284;113.423043,23.384284;113.422717,23.384201;113.422717,23.384201;113.422305,23.384102;113.422305,23.384102;113.421593,23.383906;113.421593,23.383906;113.420582,23.383633;113.420582,23.383633;113.419666,23.383381;113.419666,23.383381;113.418498,23.383069;113.418498,23.383069;113.418108,23.382964;113.418108,23.382964;113.417964,23.382921;113.417964,23.382921;113.41707,23.382674;113.41707,23.382674;113.416988,23.382652;113.416988,23.382652;113.416467,23.382517;113.416467,23.382517;113.415972,23.382383;113.415972,23.382383;113.4152,23.382174',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路辅路向西步行906米直行',\n",
       "    'orientation': '西',\n",
       "    'road': '广从公路辅路',\n",
       "    'distance': '906',\n",
       "    'duration': '725',\n",
       "    'polyline': '113.415195,23.38217;113.415035,23.382179;113.414913,23.382157;113.414913,23.382157;113.414796,23.382131;113.414796,23.382131;113.411363,23.381237;113.411363,23.381237;113.410998,23.381146;113.410998,23.381146;113.410347,23.380964;113.410347,23.380964;113.410143,23.380903;113.410143,23.380903;113.408555,23.380464;113.407001,23.380009;113.407001,23.380009;113.406832,23.379961;113.406688,23.379857',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行539米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '539',\n",
       "    'duration': '431',\n",
       "    'polyline': '113.406684,23.379852;113.405877,23.379492;113.405877,23.379492;113.405208,23.379154;113.405208,23.379154;113.404809,23.378937;113.404809,23.378937;113.404596,23.378815;113.404596,23.378815;113.404123,23.378529;113.403741,23.378264;113.403741,23.378264;113.403607,23.378173;113.403607,23.378173;113.403316,23.377977;113.403316,23.377977;113.403086,23.377799;113.402313,23.377131',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路辅路向西南步行987米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路辅路',\n",
       "    'distance': '987',\n",
       "    'duration': '790',\n",
       "    'polyline': '113.402309,23.377127;113.402131,23.377092;113.402001,23.377001;113.401033,23.376141;113.401033,23.376141;113.400742,23.375898;113.400742,23.375898;113.400599,23.375777;113.400599,23.375777;113.400582,23.37576;113.400582,23.37576;113.399349,23.374722;113.399349,23.374722;113.398837,23.374306;113.398837,23.374306;113.398342,23.373876;113.398342,23.373876;113.398164,23.373728;113.398164,23.373728;113.398103,23.373672;113.398103,23.373672;113.397496,23.373125;113.397496,23.373125;113.397127,23.372795;113.397127,23.372795;113.396389,23.372148;113.396389,23.372148;113.395447,23.371306;113.395395,23.37125;113.395234,23.371016',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行4358米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '4358',\n",
       "    'duration': '3486',\n",
       "    'polyline': '113.39523,23.371011;113.394861,23.370673;113.394861,23.370673;113.394154,23.370069;113.394154,23.370069;113.393976,23.369918;113.393976,23.369918;113.393511,23.369514;113.393511,23.369514;113.392956,23.369049;113.392956,23.369049;113.392062,23.368299;113.391541,23.367899;113.391541,23.367899;113.391046,23.367565;113.391046,23.367565;113.390499,23.367231;113.390499,23.367231;113.390217,23.36707;113.390217,23.36707;113.38865,23.366285;113.38865,23.366285;113.387804,23.365868;113.387804,23.365868;113.385668,23.364822;113.385668,23.364822;113.385417,23.364701;113.385417,23.364701;113.385082,23.364531;113.385082,23.364531;113.384761,23.364371;113.384761,23.364371;113.383867,23.363945;113.383867,23.363945;113.383411,23.363728;113.383411,23.363728;113.38306,23.363533;113.382678,23.363346;113.382678,23.363346;113.382188,23.363099;113.382188,23.363099;113.381975,23.362999;113.381975,23.362999;113.381649,23.362839;113.381649,23.362839;113.381502,23.362765;113.381502,23.362765;113.381441,23.362734;113.381441,23.362734;113.381068,23.362552;113.381068,23.362552;113.380534,23.362283;113.380534,23.362283;113.38013,23.362079;113.38013,23.362079;113.379115,23.361532;113.379115,23.361532;113.377648,23.360621;113.377292,23.360391;113.375851,23.359414;113.374905,23.358681;113.373333,23.357214;113.372995,23.356918;113.372995,23.356918;113.37263,23.356545;113.37263,23.356545;113.3725,23.356415;113.3725,23.356415;113.372196,23.356102;113.372196,23.356102;113.371888,23.355751;113.371888,23.355751;113.371602,23.355347;113.371354,23.354939;113.371233,23.354701;113.371233,23.354701;113.371128,23.354501;113.371128,23.354501;113.37099,23.354236;113.37099,23.354236;113.370842,23.353919;113.370842,23.353919;113.37066,23.353529;113.37066,23.353529;113.370295,23.352791;113.370295,23.352791;113.370126,23.352391;113.370126,23.352391;113.369874,23.351892;113.369492,23.351059;113.369492,23.351059;113.369327,23.350716;113.369327,23.350716;113.368793,23.349609;113.368793,23.349609;113.368294,23.348555;113.368294,23.348555;113.367969,23.347956;113.367839,23.347747;113.367617,23.347309;113.367617,23.347309;113.367387,23.346775;113.367387,23.346775;113.367318,23.346523;113.367287,23.346332;113.367287,23.346332;113.367274,23.346137;113.367222,23.345877;113.367075,23.345326;113.367075,23.345326;113.366962,23.344857;113.366962,23.344857;113.366832,23.344293;113.366832,23.344293;113.36678,23.344071;113.36678,23.344071;113.366732,23.343902;113.366732,23.343902;113.36671,23.343811',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从四路向南步行1950米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '广从四路',\n",
       "    'distance': '1950',\n",
       "    'duration': '1560',\n",
       "    'polyline': '113.366706,23.343806;113.366558,23.343242;113.366237,23.342214;113.366237,23.342214;113.366068,23.341662;113.366068,23.341662;113.365846,23.340998;113.365846,23.340998;113.365625,23.340226;113.365625,23.340226;113.365603,23.340139;113.365603,23.340139;113.365421,23.339592;113.365421,23.339592;113.365078,23.338503;113.365078,23.338503;113.364831,23.337856;113.364831,23.337856;113.364818,23.337812;113.364818,23.337812;113.364544,23.33714;113.364544,23.33714;113.364206,23.336359;113.364206,23.336359;113.363902,23.335703;113.363902,23.335703;113.363542,23.334922;113.363542,23.334922;113.363503,23.334861;113.363207,23.334227;113.363207,23.334227;113.362856,23.333433;113.362856,23.333433;113.362552,23.332704;113.362405,23.332296;113.362405,23.332296;113.362292,23.331931;113.362292,23.331931;113.362183,23.331606;113.362183,23.331606;113.362148,23.331476;113.362148,23.331476;113.361988,23.330868;113.361988,23.330868;113.361949,23.330712;113.361949,23.330712;113.361827,23.330195;113.361827,23.330195;113.361398,23.328316;113.361398,23.328316;113.361324,23.327925;113.361324,23.327925;113.361076,23.326927',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向南步行231米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '231',\n",
       "    'duration': '185',\n",
       "    'polyline': '113.361072,23.326923;113.360964,23.326432;113.360964,23.326432;113.360773,23.325807;113.360629,23.325417;113.360629,23.325417;113.36049,23.325117;113.36049,23.325117;113.360399,23.324913',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行202米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '202',\n",
       "    'duration': '162',\n",
       "    'polyline': '113.360395,23.324909;113.359957,23.324479;113.359796,23.324154;113.359796,23.324154;113.359635,23.323798;113.359622,23.323724;113.359605,23.323611;113.359679,23.323316',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从三路向南步行1116米',\n",
       "    'orientation': '南',\n",
       "    'road': '广从三路',\n",
       "    'distance': '1116',\n",
       "    'duration': '893',\n",
       "    'polyline': '113.359679,23.323312;113.35908,23.321988;113.35908,23.321988;113.358889,23.321541;113.358889,23.321541;113.358607,23.320755;113.358607,23.320755;113.358494,23.320425;113.358494,23.320425;113.358464,23.320352;113.358464,23.320352;113.358333,23.32;113.358333,23.32;113.357613,23.31803;113.357613,23.31803;113.357591,23.317982;113.357591,23.317982;113.357309,23.317153;113.357309,23.317153;113.356988,23.316298;113.356988,23.316298;113.35628,23.314358;113.356102,23.31398;113.355981,23.313789',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从三路向南步行219米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '广从三路',\n",
       "    'distance': '219',\n",
       "    'duration': '175',\n",
       "    'polyline': '113.355977,23.313785;113.355877,23.313546;113.355877,23.313546;113.355404,23.312248;113.355286,23.312001;113.355213,23.311944',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从三路辅路向南步行593米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '广从三路辅路',\n",
       "    'distance': '593',\n",
       "    'duration': '474',\n",
       "    'polyline': '113.355208,23.31194;113.355082,23.311823;113.355035,23.311654;113.355035,23.311654;113.354961,23.311376;113.354961,23.311376;113.354844,23.310951;113.354844,23.310951;113.354813,23.310846;113.354813,23.310846;113.35477,23.310699;113.35477,23.310699;113.354683,23.310486;113.354683,23.310486;113.354076,23.30888;113.354076,23.30888;113.353754,23.308051;113.353312,23.307066;113.353312,23.307005;113.353312,23.307005;113.353312,23.306875',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从三路向西南步行1532米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从三路',\n",
       "    'distance': '1532',\n",
       "    'duration': '1226',\n",
       "    'polyline': '113.353307,23.306871;113.353077,23.30638;113.353008,23.306198;113.352951,23.305872;113.352951,23.305872;113.352786,23.305603;113.352786,23.305603;113.352595,23.305299;113.352595,23.305299;113.352478,23.305126;113.352274,23.304848;113.352274,23.304848;113.35174,23.304184;113.35174,23.304184;113.351115,23.303464;113.351115,23.303464;113.350703,23.303012;113.350703,23.303012;113.350495,23.302782;113.350495,23.302782;113.350221,23.302478;113.350221,23.302478;113.349826,23.302031;113.349826,23.302031;113.349536,23.301714;113.349536,23.301714;113.348811,23.300916;113.348811,23.300916;113.34842,23.300499;113.34842,23.300499;113.348125,23.300239;113.347691,23.299761;113.347691,23.299761;113.346858,23.298963;113.346858,23.298963;113.346554,23.298641;113.346554,23.298641;113.34602,23.298069;113.345768,23.297739;113.345768,23.297739;113.344983,23.296901;113.344983,23.296901;113.344661,23.296545;113.344661,23.296545;113.344132,23.295977',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿广从公路向西南步行4918米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '广从公路',\n",
       "    'distance': '4918',\n",
       "    'duration': '3934',\n",
       "    'polyline': '113.344128,23.295972;113.343997,23.29582;113.343997,23.29582;113.343668,23.295391;113.343668,23.295391;113.343346,23.295048;113.343346,23.295048;113.343164,23.294831;113.342921,23.294583;113.342921,23.294583;113.342609,23.294227;113.342066,23.293641;113.342066,23.293641;113.341797,23.29326;113.341797,23.29326;113.341432,23.292765;113.341432,23.292765;113.340868,23.292148;113.340868,23.292148;113.340386,23.291619;113.340386,23.291619;113.340182,23.291393;113.340182,23.291393;113.339922,23.291102;113.339922,23.291102;113.339336,23.29046;113.339336,23.29046;113.338963,23.290052;113.338963,23.290052;113.337956,23.288924;113.337956,23.288924;113.337092,23.287986;113.337092,23.287986;113.336649,23.287487;113.336649,23.287487;113.336315,23.287135;113.336315,23.287135;113.33526,23.285959;113.33526,23.285959;113.334618,23.285252;113.334618,23.285252;113.334323,23.284918;113.334323,23.284918;113.333984,23.284549;113.333984,23.284549;113.333438,23.283941;113.333438,23.283941;113.332856,23.283303;113.332856,23.283303;113.332491,23.282895;113.332491,23.282895;113.33214,23.282522;113.33214,23.282522;113.331576,23.281888;113.331576,23.281888;113.331385,23.281675;113.331385,23.281675;113.330933,23.281185;113.330933,23.281185;113.330456,23.28066;113.330456,23.28066;113.329774,23.2799;113.329774,23.2799;113.329232,23.279314;113.329232,23.279314;113.328663,23.278681;113.328663,23.278681;113.328273,23.27826;113.328082,23.278086;113.328082,23.278086;113.327869,23.277882;113.327669,23.277678;113.327669,23.277678;113.327539,23.277487;113.327539,23.277487;113.327274,23.277066;113.327274,23.277066;113.327105,23.27681;113.327105,23.27681;113.326875,23.276411;113.326875,23.276411;113.326602,23.275816;113.326602,23.275816;113.326298,23.274935;113.326298,23.274935;113.326289,23.274909;113.326289,23.274909;113.32615,23.274427;113.32602,23.273824;113.32602,23.273824;113.325807,23.272908;113.325807,23.272908;113.325668,23.272548;113.325668,23.272548;113.325516,23.272135;113.325412,23.271662;113.325412,23.271662;113.325343,23.27135;113.325343,23.27135;113.32526,23.270859;113.32526,23.270859;113.32523,23.270503;113.32523,23.270503;113.325182,23.270195;113.325182,23.270195;113.325143,23.269978;113.325143,23.269978;113.325061,23.26957;113.325061,23.26957;113.324809,23.268481;113.324809,23.268481;113.324757,23.268325;113.324757,23.268325;113.324731,23.268268;113.324731,23.268268;113.324657,23.267973;113.324657,23.267973;113.324466,23.267096;113.324466,23.267096;113.324358,23.266667;113.324358,23.266667;113.324258,23.266111;113.324258,23.266111;113.324145,23.265512;113.324145,23.265512;113.324115,23.265391;113.324115,23.265391;113.324076,23.265135;113.324076,23.265135;113.324006,23.264583;113.324006,23.264583;113.323915,23.264089;113.323915,23.264089;113.323832,23.263698;113.323832,23.263698;113.323733,23.263251;113.323733,23.263251;113.323589,23.262635;113.323589,23.262635;113.32352,23.262344;113.323381,23.262005;113.323381,23.262005;113.32329,23.261753;113.32329,23.261753;113.32316,23.261432;113.32316,23.261432;113.322956,23.260955;113.322956,23.260955;113.322361,23.259579;113.322205,23.259253;113.322205,23.259253;113.321888,23.258707;113.321636,23.258207;113.321636,23.258207;113.321398,23.257752',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北向西南步行32米左转',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道北',\n",
       "    'distance': '32',\n",
       "    'duration': '26',\n",
       "    'polyline': '113.321393,23.257747;113.321237,23.257504',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行36米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '36',\n",
       "    'duration': '29',\n",
       "    'polyline': '113.321233,23.257496;113.321541,23.257357',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿白云大道北向西南步行3933米左转',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道北',\n",
       "    'distance': '3933',\n",
       "    'duration': '3146',\n",
       "    'polyline': '113.321545,23.257348;113.321276,23.256823;113.321276,23.256823;113.321085,23.25648;113.321085,23.25648;113.320582,23.255625;113.320582,23.255625;113.32033,23.255187;113.32033,23.255187;113.320247,23.255035;113.319965,23.25464;113.319965,23.25464;113.319779,23.254401;113.319779,23.254401;113.319293,23.253633;113.319293,23.253633;113.318798,23.252747;113.318798,23.252747;113.318294,23.251866;113.318294,23.251866;113.318077,23.251489;113.318077,23.251489;113.317674,23.250764;113.317674,23.250764;113.317391,23.250247;113.317391,23.250247;113.316979,23.249518;113.316979,23.249518;113.316393,23.248477;113.316393,23.248477;113.31582,23.247448;113.31582,23.247448;113.315556,23.246979;113.315556,23.246979;113.314792,23.245629;113.314792,23.245629;113.314531,23.245174;113.314531,23.245174;113.314149,23.244488;113.314149,23.244488;113.313915,23.244067;113.313915,23.244067;113.313563,23.243442;113.313563,23.243442;113.313073,23.242613;113.312274,23.241341;113.312114,23.241102;113.312114,23.241102;113.312014,23.240968;113.312014,23.240968;113.311862,23.240742;113.311862,23.240742;113.311701,23.240508;113.311701,23.240508;113.310091,23.238194;113.310091,23.238194;113.309857,23.237852;113.309857,23.237852;113.309479,23.237322;113.309479,23.237322;113.309475,23.23707;113.309405,23.236931;113.307795,23.234644;113.307795,23.234644;113.307209,23.233811;113.307209,23.233811;113.306675,23.233134;113.306675,23.233134;113.306237,23.232556;113.306237,23.232556;113.305972,23.232344;113.305972,23.232344;113.305499,23.231675;113.305499,23.231675;113.304796,23.230677;113.304796,23.230677;113.304462,23.230208;113.304462,23.230208;113.304132,23.22974;113.304132,23.22974;113.30378,23.22924;113.30378,23.22924;113.303394,23.228689;113.303394,23.228689;113.303134,23.228325;113.303134,23.228325;113.30283,23.227886;113.30283,23.227886;113.302743,23.22776;113.302743,23.22776;113.302591,23.227539;113.302591,23.227539;113.3023,23.227127;113.3023,23.227127;113.302066,23.226801;113.302066,23.226801;113.301979,23.226688',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云堡道向东南步行45米右转',\n",
       "    'orientation': '东南',\n",
       "    'road': '白云堡道',\n",
       "    'distance': '45',\n",
       "    'duration': '36',\n",
       "    'polyline': '113.301975,23.226684;113.302335,23.226454',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云堡立交桥向西南步行172米右转',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云堡立交桥',\n",
       "    'distance': '172',\n",
       "    'duration': '138',\n",
       "    'polyline': '113.302335,23.22645;113.302257,23.226324;113.302257,23.226324;113.302014,23.22605;113.301866,23.225916;113.301866,23.225916;113.301584,23.225551;113.301584,23.225551;113.301319,23.2252',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向西步行23米左转',\n",
       "    'orientation': '西',\n",
       "    'road': [],\n",
       "    'distance': '23',\n",
       "    'duration': '18',\n",
       "    'polyline': '113.301315,23.225195;113.301089,23.22523',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北辅路向西南步行422米向左前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道北辅路',\n",
       "    'distance': '422',\n",
       "    'duration': '338',\n",
       "    'polyline': '113.301085,23.22523;113.300777,23.224779;113.300777,23.224779;113.300625,23.224518;113.300386,23.224188;113.300386,23.224188;113.299952,23.223572;113.299952,23.223572;113.29967,23.223151;113.29967,23.223151;113.299371,23.222713;113.299371,23.222713;113.299197,23.222435;113.299197,23.222435;113.299036,23.222201;113.299036,23.222201;113.298937,23.222023;113.298937,23.222023;113.298906,23.221962',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行63米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '63',\n",
       "    'duration': '50',\n",
       "    'polyline': '113.298902,23.221957;113.299171,23.221445',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿同泰路向西步行108米向左前方行走',\n",
       "    'orientation': '西',\n",
       "    'road': '同泰路',\n",
       "    'distance': '108',\n",
       "    'duration': '86',\n",
       "    'polyline': '113.299171,23.221441;113.299115,23.221428;113.299115,23.221428;113.298685,23.221324;113.298555,23.221276;113.298555,23.221276;113.29819,23.221068',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北辅路向西南步行276米直行',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道北辅路',\n",
       "    'distance': '276',\n",
       "    'duration': '221',\n",
       "    'polyline': '113.298186,23.221063;113.29809,23.220933;113.29809,23.220933;113.297769,23.220482;113.297769,23.220482;113.297105,23.21954;113.297105,23.21954;113.296832,23.219171;113.296623,23.219036',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北向西南步行152米向左前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道北',\n",
       "    'distance': '152',\n",
       "    'duration': '122',\n",
       "    'polyline': '113.296619,23.219032;113.29625,23.218507;113.29625,23.218507;113.296137,23.218299;113.295924,23.21783',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北辅路向南步行25米向右前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '白云大道北辅路',\n",
       "    'distance': '25',\n",
       "    'duration': '20',\n",
       "    'polyline': '113.29592,23.217826;113.295959,23.217604',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北辅路向西南步行300米向左前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道北辅路',\n",
       "    'distance': '300',\n",
       "    'duration': '240',\n",
       "    'polyline': '113.295959,23.2176;113.295855,23.217222;113.295855,23.217222;113.295833,23.217157;113.295616,23.216788;113.295616,23.216788;113.295543,23.216688;113.295543,23.216688;113.295078,23.216059;113.295078,23.216059;113.294978,23.215964;113.294687,23.21576;113.294687,23.21576;113.294514,23.215634;113.294514,23.215634;113.294466,23.215599;113.294206,23.215573',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北向西南步行1529米向左前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道北',\n",
       "    'distance': '1529',\n",
       "    'duration': '1223',\n",
       "    'polyline': '113.294201,23.215569;113.293915,23.215226;113.293915,23.215226;113.293772,23.215009;113.293772,23.215009;113.293572,23.214709;113.293572,23.214709;113.293047,23.213967;113.293047,23.213967;113.292847,23.213698;113.292847,23.213698;113.292652,23.21342;113.292652,23.21342;113.292543,23.213273;113.292543,23.213273;113.292383,23.213043;113.292383,23.213043;113.291901,23.212348;113.291901,23.212348;113.29171,23.21207;113.29171,23.21207;113.291415,23.211658;113.291415,23.211658;113.291115,23.211224;113.291115,23.211224;113.290451,23.210273;113.29023,23.209913;113.29023,23.209913;113.289913,23.20934;113.289653,23.20878;113.289653,23.20878;113.289423,23.208207;113.289423,23.208207;113.289293,23.207817;113.289293,23.207817;113.289249,23.207682;113.289249,23.207682;113.289041,23.206914;113.289041,23.206914;113.288898,23.206393;113.288898,23.206393;113.288837,23.206146;113.288837,23.206146;113.288767,23.20589;113.288767,23.20589;113.288707,23.20566;113.288707,23.20566;113.288494,23.204844;113.288494,23.204844;113.288277,23.204006;113.288277,23.204006;113.288082,23.203251;113.288082,23.203251;113.288043,23.203108',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道北辅路向南步行410米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '白云大道北辅路',\n",
       "    'distance': '410',\n",
       "    'duration': '328',\n",
       "    'polyline': '113.288038,23.203103;113.28809,23.202977;113.288012,23.202561;113.287882,23.202027;113.287882,23.202027;113.287609,23.200937;113.287609,23.200937;113.2875,23.200503;113.287396,23.200022;113.287396,23.200022;113.287357,23.199865;113.287357,23.199865;113.287331,23.199722;113.287331,23.199722;113.28727,23.19947',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道南辅路向南步行259米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '白云大道南辅路',\n",
       "    'distance': '259',\n",
       "    'duration': '207',\n",
       "    'polyline': '113.287266,23.199466;113.287188,23.198893;113.287088,23.198446;113.287088,23.198446;113.286975,23.197865;113.286975,23.197865;113.286892,23.197517;113.286732,23.197192',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道南向西南步行1463米向左后方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道南',\n",
       "    'distance': '1463',\n",
       "    'duration': '1170',\n",
       "    'polyline': '113.286727,23.197187;113.286632,23.19697;113.286515,23.196753;113.286515,23.196753;113.286324,23.19645;113.286324,23.19645;113.286189,23.196276;113.286189,23.196276;113.286042,23.196102;113.285386,23.195412;113.285386,23.195412;113.285135,23.195152;113.285135,23.195152;113.285004,23.195017;113.285004,23.195017;113.28474,23.194722;113.284518,23.194414;113.284214,23.193863;113.284214,23.193863;113.283885,23.19322;113.283885,23.19322;113.283663,23.192778;113.283663,23.192778;113.283641,23.192743;113.283641,23.192743;113.283281,23.19204;113.283281,23.19204;113.28303,23.191536;113.28286,23.191098;113.28286,23.191098;113.282283,23.189293;113.282053,23.18862;113.282053,23.18862;113.281849,23.188116;113.28161,23.187595;113.28161,23.187595;113.281306,23.186975;113.280573,23.185681;113.280573,23.185681;113.280421,23.185391',\n",
       "    'action': '向左后方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '向东北步行25米向右后方行走',\n",
       "    'orientation': '东北',\n",
       "    'road': [],\n",
       "    'distance': '25',\n",
       "    'duration': '20',\n",
       "    'polyline': '113.280417,23.185386;113.280629,23.185512',\n",
       "    'action': '向右后方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道南辅路向南步行692米向左前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '白云大道南辅路',\n",
       "    'distance': '692',\n",
       "    'duration': '554',\n",
       "    'polyline': '113.280629,23.185512;113.28053,23.185295;113.280495,23.185178;113.280343,23.184314;113.280308,23.184193;113.280239,23.18408;113.280178,23.183997;113.279939,23.183789;113.279839,23.183672;113.279766,23.183542;113.279709,23.18342;113.279557,23.182973;113.279557,23.182973;113.279457,23.182652;113.279457,23.182652;113.279375,23.182387;113.279375,23.182387;113.279345,23.182283;113.279345,23.182283;113.279314,23.182192;113.279314,23.182192;113.279175,23.18174;113.279175,23.18174;113.278954,23.181059;113.278954,23.181059;113.278507,23.179627',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行123米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '123',\n",
       "    'duration': '98',\n",
       "    'polyline': '113.278503,23.179622;113.278555,23.179609;113.278555,23.179609;113.278507,23.179423;113.278507,23.179423;113.277943,23.179553;113.277943,23.179553;113.277865,23.179332;113.277865,23.179332;113.277973,23.179297',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '3'},\n",
       "   {'instruction': '沿白云大道南辅路向南步行51米',\n",
       "    'orientation': '南',\n",
       "    'road': '白云大道南辅路',\n",
       "    'distance': '51',\n",
       "    'duration': '41',\n",
       "    'polyline': '113.277973,23.179293;113.277873,23.178963;113.277873,23.178963;113.277834,23.17885',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道南辅路向南步行56米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '白云大道南辅路',\n",
       "    'distance': '56',\n",
       "    'duration': '45',\n",
       "    'polyline': '113.27783,23.178845;113.277765,23.178459;113.277756,23.178342',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道南向西南步行657米向右前方行走',\n",
       "    'orientation': '西南',\n",
       "    'road': '白云大道南',\n",
       "    'distance': '657',\n",
       "    'duration': '526',\n",
       "    'polyline': '113.277752,23.178338;113.277674,23.178103;113.277674,23.178103;113.27753,23.177717;113.27753,23.177717;113.277474,23.177539;113.277474,23.177539;113.277192,23.176745;113.276936,23.176176;113.276936,23.176176;113.276866,23.176063;113.276866,23.176063;113.276806,23.175964;113.276806,23.175964;113.276714,23.175794;113.276714,23.175794;113.276576,23.175577;113.276576,23.175577;113.276493,23.175447;113.276493,23.175447;113.276467,23.175408;113.276467,23.175408;113.276424,23.175334;113.276424,23.175334;113.275911,23.174557;113.275911,23.174557;113.275799,23.174349;113.275799,23.174349;113.275681,23.174106;113.275681,23.174106;113.27533,23.173186;113.27533,23.173186;113.275286,23.17306;113.275286,23.17306;113.275204,23.172856',\n",
       "    'action': '向右前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿白云大道南向南步行385米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '白云大道南',\n",
       "    'distance': '385',\n",
       "    'duration': '308',\n",
       "    'polyline': '113.2752,23.172852;113.275074,23.172674;113.275074,23.172674;113.274983,23.172478;113.274983,23.172478;113.274874,23.172179;113.274874,23.172179;113.274753,23.171875;113.274753,23.171875;113.274583,23.171406;113.274583,23.171406;113.274562,23.171359;113.274562,23.171359;113.274162,23.170334;113.27408,23.169931;113.274019,23.169544',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿金钟横路向西步行795米向左前方行走',\n",
       "    'orientation': '西',\n",
       "    'road': '金钟横路',\n",
       "    'distance': '795',\n",
       "    'duration': '636',\n",
       "    'polyline': '113.274015,23.16954;113.273355,23.169735;113.273355,23.169735;113.273082,23.169809;113.273082,23.169809;113.272852,23.169878;113.272852,23.169878;113.272348,23.170004;113.272348,23.170004;113.272274,23.170017;113.272274,23.170017;113.272118,23.170056;113.271745,23.170109;113.271745,23.170109;113.271259,23.170148;113.271259,23.170148;113.270838,23.170156;113.270838,23.170156;113.270664,23.170156;113.270664,23.170156;113.270152,23.170152;113.270152,23.170152;113.270013,23.170148;113.270013,23.170148;113.269831,23.170109;113.269831,23.170109;113.269692,23.170043;113.269692,23.170043;113.26951,23.169957;113.269457,23.169909;113.269457,23.169909;113.269275,23.169718;113.269275,23.169718;113.269036,23.169384;113.269036,23.169384;113.268854,23.169123;113.268854,23.169123;113.268472,23.168624;113.268472,23.168624;113.26839,23.168511;113.26839,23.168511;113.268168,23.168225;113.268168,23.168225;113.268116,23.168147;113.268116,23.168147;113.267969,23.167947;113.267969,23.167947;113.267665,23.167513',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿松柏东街向南步行551米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '松柏东街',\n",
       "    'distance': '551',\n",
       "    'duration': '441',\n",
       "    'polyline': '113.267661,23.167509;113.267682,23.167218;113.267682,23.167218;113.267682,23.16704;113.267682,23.16704;113.267678,23.166432;113.267678,23.166432;113.267665,23.166107;113.267665,23.166107;113.267648,23.165838;113.267648,23.165838;113.267587,23.16536;113.267587,23.16536;113.267526,23.165174;113.267526,23.165174;113.267426,23.164948;113.267426,23.164948;113.267305,23.164631;113.267305,23.164631;113.267222,23.164306;113.267222,23.164306;113.267192,23.164171;113.267192,23.164171;113.267153,23.164019;113.267153,23.164019;113.26714,23.163967;113.26714,23.163967;113.267114,23.163845;113.267114,23.163845;113.267062,23.16365;113.267062,23.16365;113.266931,23.163359;113.266931,23.163359;113.266879,23.163255;113.266879,23.163255;113.26681,23.163125;113.266758,23.162986;113.266758,23.162986;113.266701,23.162804;113.266671,23.162604',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿松柏北街向西步行237米左转',\n",
       "    'orientation': '西',\n",
       "    'road': '松柏北街',\n",
       "    'distance': '237',\n",
       "    'duration': '190',\n",
       "    'polyline': '113.266667,23.1626;113.266445,23.162613;113.266445,23.162613;113.266237,23.1626;113.266237,23.1626;113.265842,23.162561;113.265842,23.162561;113.26566,23.162504;113.265473,23.16247;113.265473,23.16247;113.265069,23.162457;113.265069,23.162457;113.264735,23.162444;113.264735,23.162444;113.264444,23.162431;113.264444,23.162431;113.264353,23.162426',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿松柏西街向南步行251米右转',\n",
       "    'orientation': '南',\n",
       "    'road': '松柏西街',\n",
       "    'distance': '251',\n",
       "    'duration': '201',\n",
       "    'polyline': '113.264349,23.162422;113.264271,23.162127;113.264271,23.162127;113.264193,23.161823;113.264193,23.161823;113.264162,23.161688;113.264162,23.161688;113.264141,23.161545;113.264141,23.161545;113.26408,23.161289;113.26408,23.161289;113.264071,23.160994;113.264071,23.160994;113.264054,23.160799;113.264023,23.160734;113.264023,23.160734;113.263641,23.160286',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿机场路向北步行35米左转',\n",
       "    'orientation': '北',\n",
       "    'road': '机场路',\n",
       "    'distance': '35',\n",
       "    'duration': '28',\n",
       "    'polyline': '113.263637,23.160282;113.26352,23.160582',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行24米直行',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '24',\n",
       "    'duration': '19',\n",
       "    'polyline': '113.263511,23.160582;113.263286,23.160556',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行219米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '219',\n",
       "    'duration': '175',\n",
       "    'polyline': '113.263281,23.160551;113.263168,23.160516;113.263168,23.160516;113.263125,23.16049;113.263103,23.160438;113.26316,23.160395;113.263199,23.16033;113.263155,23.159449;113.263155,23.159314;113.263173,23.159223;113.26326,23.15911;113.263312,23.158976;113.263312,23.158976;113.263342,23.158902;113.263329,23.158759',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '4'},\n",
       "   {'instruction': '步行29米右转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '29',\n",
       "    'duration': '23',\n",
       "    'polyline': '113.263325,23.158754;113.263607,23.158746',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '1'},\n",
       "   {'instruction': '沿机场路向南步行652米直行',\n",
       "    'orientation': '南',\n",
       "    'road': '机场路',\n",
       "    'distance': '652',\n",
       "    'duration': '522',\n",
       "    'polyline': '113.263607,23.158741;113.263598,23.158325;113.263646,23.158177;113.263655,23.158095;113.263637,23.157921;113.263576,23.157639;113.263576,23.157639;113.263546,23.157266;113.263615,23.156402;113.263615,23.156402;113.263646,23.156168;113.263646,23.156168;113.263685,23.155968;113.263685,23.155968;113.263733,23.155543;113.26365,23.155369;113.26365,23.155369;113.263676,23.1551;113.263676,23.1551;113.263702,23.154865;113.263702,23.154865;113.263689,23.154648;113.263689,23.154648;113.263668,23.154444;113.263598,23.154171;113.263598,23.154171;113.263346,23.153503;113.263346,23.153503;113.263325,23.153442;113.263325,23.153442;113.263216,23.153134;113.263216,23.153134;113.263155,23.152917',\n",
       "    'action': '直行',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿解放北路向南步行274米向左前方行走',\n",
       "    'orientation': '南',\n",
       "    'road': '解放北路',\n",
       "    'distance': '274',\n",
       "    'duration': '219',\n",
       "    'polyline': '113.263151,23.152912;113.263125,23.152817;113.263125,23.152817;113.263095,23.152687;113.263095,23.152687;113.262917,23.151936;113.262917,23.151936;113.262834,23.151324;113.262834,23.151324;113.262773,23.150816;113.262773,23.150816;113.26273,23.150456',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿解放北路向南步行499米左转',\n",
       "    'orientation': '南',\n",
       "    'road': '解放北路',\n",
       "    'distance': '499',\n",
       "    'duration': '399',\n",
       "    'polyline': '113.262726,23.150451;113.262747,23.15036;113.262747,23.15036;113.262769,23.150278;113.262752,23.150043;113.262752,23.150043;113.262734,23.149839;113.262734,23.149839;113.26273,23.149779;113.26273,23.149779;113.26273,23.149731;113.26273,23.149731;113.262704,23.149497;113.262704,23.149497;113.262674,23.14931;113.262674,23.14931;113.26263,23.149076;113.26263,23.149076;113.262604,23.148915;113.262604,23.148915;113.262522,23.14842;113.262509,23.148207;113.262509,23.148207;113.262444,23.147522;113.262348,23.147096;113.262179,23.146506;113.262179,23.146506;113.261988,23.145977',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿大北立交步行52米向左前方行走',\n",
       "    'orientation': [],\n",
       "    'road': '大北立交',\n",
       "    'distance': '52',\n",
       "    'duration': '42',\n",
       "    'polyline': '113.261984,23.145972;113.262005,23.145951;113.262005,23.145951;113.262023,23.145855;113.26201,23.145729;113.261988,23.145664;113.261918,23.145608;113.261918,23.145608;113.261992,23.145595',\n",
       "    'action': '向左前方行走',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿解放北路向南步行875米',\n",
       "    'orientation': '南',\n",
       "    'road': '解放北路',\n",
       "    'distance': '875',\n",
       "    'duration': '700',\n",
       "    'polyline': '113.261992,23.14559;113.261905,23.145048;113.261814,23.144045;113.261775,23.143685;113.261697,23.143507;113.261697,23.143507;113.261554,23.142027;113.261554,23.142027;113.261532,23.141558;113.261532,23.141558;113.261445,23.140716;113.261445,23.140716;113.261432,23.140486;113.261432,23.140486;113.261432,23.140299;113.261458,23.14003;113.261458,23.14003;113.26148,23.139905;113.26148,23.139905;113.261549,23.139557;113.261641,23.139275;113.261641,23.139275;113.261719,23.139002;113.261801,23.138611;113.261801,23.138611;113.261862,23.138082;113.261862,23.138082;113.261862,23.137895;113.261871,23.137713',\n",
       "    'action': [],\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿解放北路向南步行658米左转',\n",
       "    'orientation': '南',\n",
       "    'road': '解放北路',\n",
       "    'distance': '658',\n",
       "    'duration': '526',\n",
       "    'polyline': '113.261871,23.137708;113.261905,23.137474;113.261914,23.13694;113.261914,23.13694;113.261914,23.136528;113.261914,23.136528;113.261905,23.136215;113.261905,23.136215;113.261905,23.13546;113.261905,23.13546;113.261923,23.134514;113.261923,23.134514;113.261923,23.134475;113.261923,23.134475;113.261931,23.134167;113.261931,23.134167;113.261944,23.132613;113.261944,23.132613;113.261944,23.1323;113.261944,23.1323;113.261944,23.132279;113.261944,23.132279;113.262005,23.131936;113.262036,23.131866;113.262127,23.131762',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿东风中路向东步行77米左转',\n",
       "    'orientation': '东',\n",
       "    'road': '东风中路',\n",
       "    'distance': '77',\n",
       "    'duration': '62',\n",
       "    'polyline': '113.262127,23.131758;113.262374,23.131723;113.262374,23.131723;113.262569,23.131697;113.262569,23.131697;113.262778,23.131675;113.262778,23.131675;113.262891,23.131662',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行196米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '196',\n",
       "    'duration': '157',\n",
       "    'polyline': '113.262891,23.131658;113.262908,23.131836;113.262908,23.131836;113.263424,23.131827;113.263424,23.131827;113.26342,23.131272;113.263203,23.131272;113.263194,23.131111;113.263194,23.131111;113.263168,23.130911',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '5'},\n",
       "   {'instruction': '向东步行21米右转',\n",
       "    'orientation': '东',\n",
       "    'road': [],\n",
       "    'distance': '21',\n",
       "    'duration': '17',\n",
       "    'polyline': '113.263164,23.130907;113.263294,23.130885;113.263294,23.130885;113.263372,23.130851',\n",
       "    'action': '右转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '沿连新路向南步行268米左转',\n",
       "    'orientation': '南',\n",
       "    'road': '连新路',\n",
       "    'distance': '268',\n",
       "    'duration': '214',\n",
       "    'polyline': '113.263372,23.130846;113.263325,23.128728;113.263325,23.128728;113.263325,23.12842',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行100米左转',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '100',\n",
       "    'duration': '80',\n",
       "    'polyline': '113.26332,23.128416;113.263633,23.128438;113.263633,23.128438;113.263997,23.128429;113.263997,23.128429;113.26431,23.128416',\n",
       "    'action': '左转',\n",
       "    'assistant_action': [],\n",
       "    'walk_type': '0'},\n",
       "   {'instruction': '步行70米到达目的地',\n",
       "    'orientation': [],\n",
       "    'road': [],\n",
       "    'distance': '70',\n",
       "    'duration': '56',\n",
       "    'polyline': '113.26431,23.128411;113.264301,23.128754;113.264301,23.128754;113.26431,23.128906;113.264362,23.128967;113.26444,23.128967',\n",
       "    'action': [],\n",
       "    'assistant_action': '到达目的地',\n",
       "    'walk_type': '0'}]}]"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()['route']['paths']"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 五、 公交\n",
    ">* 定义：公交路径规划 API 可以规划综合各类公共（火车、公交、地铁）交通方式的通勤方案，并且返回通勤方案的数据。  \n",
    "\n",
    ">* 应用场景：地铁内的电子地铁路线牌  \n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key,origin,destination,city\n",
    ">* 可选参数：cityd,extensions,strategy,nightflag,date,time,sig,output,callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "origin = \"113.357083,23.157434\"\n",
    "destination = \"113.264434,23.129162\"\n",
    "city =  \"广州\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [],
   "source": [
    "华农_address = \"广东省广州市华南农业大学\"\n",
    "长隆_address = \"广东省广州市长隆\"\n",
    "def bus(zhuang_key,origin,destination,city):\n",
    "    z_url = \"https://restapi.amap.com/v3/direction/transit/integrated?parameters\"\n",
    "    params = {\n",
    "        \"key\":zhuang_key,\n",
    "        \"origin\":origin,\n",
    "        \"destination\":destination,\n",
    "        \"city\":city,\n",
    "    }\n",
    "    r = requests.get(z_url,params=params)\n",
    "    result = r.json()\n",
    "    return result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '5',\n",
       " 'route': {'origin': '113.357083,23.157434',\n",
       "  'destination': '113.264434,23.129162',\n",
       "  'distance': '11501',\n",
       "  'taxi_cost': '35',\n",
       "  'transits': [{'cost': '4.0',\n",
       "    'duration': '2651',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1813',\n",
       "    'distance': '12857',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.356827,23.157383',\n",
       "       'destination': '113.351822,23.152830',\n",
       "       'distance': '1137',\n",
       "       'duration': '974',\n",
       "       'steps': [{'instruction': '沿嵩山路步行129米向右前方行走',\n",
       "         'road': '嵩山路',\n",
       "         'distance': '129',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356827,23.157383;113.356949,23.156876;113.357071,23.156397;113.357132,23.156260',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行173米向右前方行走',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '173',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357132,23.156254;113.357101,23.156199;113.357101,23.156063;113.357086,23.155834;113.357086,23.155525;113.357086,23.154678',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行189米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '189',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357086,23.154675;113.356956,23.154552;113.356918,23.154501;113.356796,23.154119;113.356613,23.153784;113.356598,23.153715;113.356621,23.153402;113.356560,23.153099',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行79米右转',\n",
       "         'road': [],\n",
       "         'distance': '79',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356560,23.153095;113.356613,23.152874;113.356735,23.152575;113.356766,23.152412',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿五山路步行259米向右前方行走',\n",
       "         'road': '五山路',\n",
       "         'distance': '259',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356766,23.152409;113.354881,23.152218;113.354446,23.152170;113.354256,23.152105',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行214米右转',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '214',\n",
       "         'duration': [],\n",
       "         'polyline': '113.354256,23.152102;113.353722,23.152126;113.353592,23.152153;113.352905,23.152248;113.352440,23.152275;113.352165,23.152275',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行94米到达五山',\n",
       "         'road': [],\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.352165,23.152269;113.352165,23.152456;113.352135,23.152578;113.351852,23.152561;113.351822,23.152830',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达五山'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '五山',\n",
       "          'id': '440100023034003',\n",
       "          'location': '113.351812,23.152833'},\n",
       "         'arrival_stop': {'name': '体育西路',\n",
       "          'id': '440100023034007',\n",
       "          'location': '113.321503,23.131138'},\n",
       "         'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "         'id': '440100023034',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '4785',\n",
       "         'duration': '448',\n",
       "         'polyline': '113.351812,23.152833;113.351865,23.152247;113.351840,23.152073;113.351678,23.151891;113.351390,23.151737;113.350826,23.151509;113.350175,23.151139;113.349695,23.150799;113.349617,23.150721;113.349295,23.150503;113.349173,23.150424;113.348877,23.150233;113.348773,23.150157;113.348625,23.150033;113.348451,23.149876;113.348347,23.149768;113.348181,23.149585;113.348077,23.149472;113.347999,23.149385;113.347859,23.149217;113.347755,23.149089;113.347651,23.148922;113.347433,23.148548;113.347346,23.148400;113.347294,23.148309;113.347251,23.148231;113.346912,23.147572;113.346807,23.147328;113.346537,23.146786;113.346381,23.146246;113.346221,23.145618;113.346073,23.144880;113.346020,23.144571;113.345994,23.144282;113.345986,23.143819;113.345999,23.143396;113.346013,23.142584;113.346041,23.142180;113.346067,23.141833;113.346052,23.141570;113.345975,23.141240;113.345825,23.140959;113.345330,23.140290;113.344795,23.139549;113.343632,23.138139;113.343536,23.138033;113.343431,23.137879;113.343275,23.137529;113.343214,23.137390;113.343057,23.137038;113.342936,23.136818;113.342770,23.136577;113.342683,23.136447;113.342605,23.136342;113.342562,23.136297;113.342509,23.136244;113.342266,23.135977;113.342188,23.135896;113.342127,23.135849;113.341935,23.135740;113.341683,23.135618;113.341535,23.135554;113.341474,23.135530;113.341405,23.135513;113.341335,23.135493;113.341179,23.135456;113.340979,23.135401;113.340778,23.135347;113.340639,23.135303;113.340327,23.135177;113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135;113.331184,23.133151;113.330589,23.133198;113.328752,23.133418;113.328183,23.133479;113.327289,23.133514;113.326354,23.133514;113.325081,23.133547;113.324429,23.133601;113.323537,23.133645;113.322613,23.133645;113.322308,23.133591;113.321994,23.133405;113.321558,23.132971;113.321548,23.132550;113.321503,23.131138',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '华师',\n",
       "           'id': '440100023034004',\n",
       "           'location': '113.345330,23.140290'},\n",
       "          {'name': '岗顶',\n",
       "           'id': '440100023034005',\n",
       "           'location': '113.339601,23.134880'},\n",
       "          {'name': '石牌桥',\n",
       "           'id': '440100023034006',\n",
       "           'location': '113.332124,23.133135'}]}]},\n",
       "      'entrance': {'name': 'B1口', 'location': '113.352150,23.152456'},\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': [],\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '体育西路',\n",
       "          'id': '440100023049004',\n",
       "          'location': '113.321503,23.131138'},\n",
       "         'arrival_stop': {'name': '公园前',\n",
       "          'id': '440100023049009',\n",
       "          'location': '113.264315,23.125446'},\n",
       "         'name': '地铁1号线(广州东站--西塱)',\n",
       "         'id': '440100023049',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '6259',\n",
       "         'duration': '649',\n",
       "         'polyline': '113.321503,23.131138;113.320799,23.131151;113.320267,23.131043;113.319601,23.130872;113.318401,23.130500;113.315224,23.129706;113.313255,23.129394;113.312666,23.129328;113.312039,23.129248;113.311604,23.129194;113.311304,23.129103;113.310998,23.129028;113.310703,23.128938;113.310368,23.128810;113.310137,23.128710;113.308877,23.128137;113.307628,23.127575;113.307209,23.127364;113.305986,23.126659;113.305306,23.126327;113.304782,23.126087;113.304151,23.125812;113.303679,23.125634;113.303052,23.125418;113.302367,23.125220;113.301290,23.124878;113.299513,23.124281;113.298692,23.124056;113.297758,23.123894;113.297093,23.123788;113.296880,23.123771;113.296630,23.123797;113.295373,23.123980;113.294130,23.124160;113.293696,23.124254;113.292735,23.124499;113.291440,23.124819;113.289980,23.125210;113.289562,23.125325;113.289285,23.125420;113.289067,23.125502;113.288728,23.125623;113.288293,23.125803;113.287355,23.126162;113.286927,23.126336;113.286808,23.126380;113.286710,23.126422;113.286664,23.126439;113.285663,23.126704;113.284645,23.126974;113.284497,23.126996;113.284380,23.127011;113.284256,23.127018;113.284043,23.127007;113.283557,23.127001;113.283105,23.127000;113.281845,23.127014;113.281054,23.127039;113.280333,23.127060;113.280133,23.127054;113.279916,23.127040;113.279438,23.127009;113.279064,23.126977;113.278551,23.126931;113.277657,23.126811;113.277039,23.126732;113.276735,23.126699;113.276526,23.126687;113.276373,23.126675;113.275602,23.126623;113.274837,23.126572;113.274679,23.126571;113.274546,23.126561;113.274442,23.126554;113.274337,23.126545;113.274216,23.126532;113.274077,23.126510;113.273912,23.126484;113.273825,23.126467;113.273694,23.126438;113.273425,23.126371;113.273286,23.126338;113.273164,23.126308;113.273043,23.126269;113.272904,23.126223;113.272643,23.126121;113.272513,23.126066;113.272287,23.125979;113.272070,23.125894;113.271939,23.125851;113.271835,23.125821;113.271748,23.125799;113.271610,23.125773;113.271505,23.125755;113.271401,23.125740;113.271270,23.125722;113.271097,23.125707;113.270941,23.125696;113.270706,23.125685;113.269959,23.125663;113.267778,23.125603;113.266875,23.125553;113.266078,23.125520;113.265706,23.125515;113.264315,23.125446',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '4',\n",
       "         'via_stops': [{'name': '杨箕',\n",
       "           'id': '440100023049005',\n",
       "           'location': '113.308877,23.128137'},\n",
       "          {'name': '东山口',\n",
       "           'id': '440100023049006',\n",
       "           'location': '113.295373,23.123980'},\n",
       "          {'name': '烈士陵园',\n",
       "           'id': '440100023049007',\n",
       "           'location': '113.285663,23.126704'},\n",
       "          {'name': '农讲所',\n",
       "           'id': '440100023049008',\n",
       "           'location': '113.275602,23.126623'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': {'name': 'F口', 'location': '113.264816,23.125746'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.264313,23.125443',\n",
       "       'destination': '113.264442,23.128971',\n",
       "       'distance': '675',\n",
       "       'duration': '578',\n",
       "       'steps': [{'instruction': '步行126米左转',\n",
       "         'road': [],\n",
       "         'distance': '126',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264313,23.125443;113.264313,23.125446;113.264534,23.125456;113.264610,23.125460;113.264938,23.125477;113.264915,23.125746;113.264816,23.125746;113.264832,23.125517',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿中山五路步行58米左转',\n",
       "         'road': '中山五路',\n",
       "         'distance': '58',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264832,23.125513;113.265404,23.125538',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿吉祥路步行347米左转',\n",
       "         'road': '吉祥路',\n",
       "         'distance': '347',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265404,23.125538;113.265366,23.125755;113.265350,23.125925;113.265343,23.126293;113.265350,23.126402;113.265381,23.127270;113.265404,23.127361;113.265419,23.127682;113.265434,23.128017;113.265503,23.128681',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿府前路步行57米右转',\n",
       "         'road': '府前路',\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265503,23.128681;113.264938,23.128719',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行35米左转',\n",
       "         'road': [],\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.128719;113.264938,23.129036',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.129036;113.264771,23.128981;113.264442,23.128971',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '3834',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1822',\n",
       "    'distance': '14759',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.356827,23.157383',\n",
       "       'destination': '113.351822,23.152830',\n",
       "       'distance': '1137',\n",
       "       'duration': '974',\n",
       "       'steps': [{'instruction': '沿嵩山路步行129米向右前方行走',\n",
       "         'road': '嵩山路',\n",
       "         'distance': '129',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356827,23.157383;113.356949,23.156876;113.357071,23.156397;113.357132,23.156260',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行173米向右前方行走',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '173',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357132,23.156254;113.357101,23.156199;113.357101,23.156063;113.357086,23.155834;113.357086,23.155525;113.357086,23.154678',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行189米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '189',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357086,23.154675;113.356956,23.154552;113.356918,23.154501;113.356796,23.154119;113.356613,23.153784;113.356598,23.153715;113.356621,23.153402;113.356560,23.153099',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行79米右转',\n",
       "         'road': [],\n",
       "         'distance': '79',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356560,23.153095;113.356613,23.152874;113.356735,23.152575;113.356766,23.152412',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿五山路步行259米向右前方行走',\n",
       "         'road': '五山路',\n",
       "         'distance': '259',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356766,23.152409;113.354881,23.152218;113.354446,23.152170;113.354256,23.152105',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行214米右转',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '214',\n",
       "         'duration': [],\n",
       "         'polyline': '113.354256,23.152102;113.353722,23.152126;113.353592,23.152153;113.352905,23.152248;113.352440,23.152275;113.352165,23.152275',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行94米到达五山',\n",
       "         'road': [],\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.352165,23.152269;113.352165,23.152456;113.352135,23.152578;113.351852,23.152561;113.351822,23.152830',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达五山'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '五山',\n",
       "          'id': '440100023034003',\n",
       "          'location': '113.351812,23.152833'},\n",
       "         'arrival_stop': {'name': '石牌桥',\n",
       "          'id': '440100023034006',\n",
       "          'location': '113.332124,23.133135'},\n",
       "         'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "         'id': '440100023034',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '3582',\n",
       "         'duration': '340',\n",
       "         'polyline': '113.351812,23.152833;113.351865,23.152247;113.351840,23.152073;113.351678,23.151891;113.351390,23.151737;113.350826,23.151509;113.350175,23.151139;113.349695,23.150799;113.349617,23.150721;113.349295,23.150503;113.349173,23.150424;113.348877,23.150233;113.348773,23.150157;113.348625,23.150033;113.348451,23.149876;113.348347,23.149768;113.348181,23.149585;113.348077,23.149472;113.347999,23.149385;113.347859,23.149217;113.347755,23.149089;113.347651,23.148922;113.347433,23.148548;113.347346,23.148400;113.347294,23.148309;113.347251,23.148231;113.346912,23.147572;113.346807,23.147328;113.346537,23.146786;113.346381,23.146246;113.346221,23.145618;113.346073,23.144880;113.346020,23.144571;113.345994,23.144282;113.345986,23.143819;113.345999,23.143396;113.346013,23.142584;113.346041,23.142180;113.346067,23.141833;113.346052,23.141570;113.345975,23.141240;113.345825,23.140959;113.345330,23.140290;113.344795,23.139549;113.343632,23.138139;113.343536,23.138033;113.343431,23.137879;113.343275,23.137529;113.343214,23.137390;113.343057,23.137038;113.342936,23.136818;113.342770,23.136577;113.342683,23.136447;113.342605,23.136342;113.342562,23.136297;113.342509,23.136244;113.342266,23.135977;113.342188,23.135896;113.342127,23.135849;113.341935,23.135740;113.341683,23.135618;113.341535,23.135554;113.341474,23.135530;113.341405,23.135513;113.341335,23.135493;113.341179,23.135456;113.340979,23.135401;113.340778,23.135347;113.340639,23.135303;113.340327,23.135177;113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '华师',\n",
       "           'id': '440100023034004',\n",
       "           'location': '113.345330,23.140290'},\n",
       "          {'name': '岗顶',\n",
       "           'id': '440100023034005',\n",
       "           'location': '113.339601,23.134880'}]}]},\n",
       "      'entrance': {'name': 'B1口', 'location': '113.352150,23.152456'},\n",
       "      'exit': {'name': 'D口', 'location': '113.330833,23.133738'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.332123,23.133129',\n",
       "       'destination': '113.330612,23.133465',\n",
       "       'distance': '247',\n",
       "       'duration': '211',\n",
       "       'steps': [{'instruction': '步行226米右转',\n",
       "         'road': [],\n",
       "         'distance': '226',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332123,23.133129;113.331512,23.133142;113.331520,23.133724;113.330841,23.133734;113.330818,23.133465',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿天河路步行21米到达石牌桥',\n",
       "         'road': '天河路',\n",
       "         'distance': '21',\n",
       "         'duration': [],\n",
       "         'polyline': '113.330818,23.133455;113.330612,23.133465',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达石牌桥'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '石牌桥',\n",
       "          'id': '440100017358028',\n",
       "          'location': '113.330608,23.133464'},\n",
       "         'arrival_stop': {'name': '广仁路总站',\n",
       "          'id': '440100017358038',\n",
       "          'location': '113.267617,23.128646'},\n",
       "         'name': 'B4路快线(天河智慧城核心区总站(高唐)--广仁路总站)',\n",
       "         'id': '440100017358',\n",
       "         'type': '快速公交系统',\n",
       "         'distance': '9355',\n",
       "         'duration': '1933',\n",
       "         'polyline': '113.330608,23.133464;113.329727,23.133498;113.329470,23.133520;113.328446,23.133559;113.328216,23.133576;113.326606,23.133655;113.325920,23.133685;113.324436,23.133767;113.323155,23.133819;113.322205,23.133828;113.322205,23.133829;113.321930,23.133833;113.321304,23.133841;113.321205,23.133799;113.320152,23.133844;113.319374,23.133862;113.319397,23.133980;113.318459,23.134045;113.317863,23.134085;113.317543,23.134098;113.316681,23.134130;113.316032,23.134153;113.315819,23.134176;113.315750,23.134266;113.315643,23.134350;113.315529,23.134388;113.315407,23.134399;113.315300,23.134384;113.315208,23.134357;113.315132,23.134302;113.315033,23.134197;113.314972,23.134027;113.314980,23.133858;113.315048,23.133711;113.315163,23.133615;113.315155,23.133408;113.315147,23.132765;113.315132,23.132053;113.315132,23.131607;113.315132,23.131189;113.315109,23.129995;113.315010,23.129930;113.314186,23.130339;113.313866,23.130478;113.313652,23.130569;113.313461,23.130611;113.313034,23.130793;113.312988,23.130816;113.312508,23.131020;113.312347,23.131060;113.312210,23.131128;113.311852,23.131268;113.311562,23.131393;113.310936,23.131649;113.310715,23.131706;113.310204,23.131817;113.309875,23.131889;113.309509,23.131931;113.308914,23.131971;113.308144,23.131958;113.307785,23.131945;113.307564,23.131945;113.307281,23.131935;113.307007,23.131931;113.306900,23.131931;113.306168,23.131914;113.306107,23.131914;113.305504,23.131908;113.305199,23.131905;113.304779,23.131893;113.304695,23.131893;113.304459,23.131889;113.303642,23.131880;113.303101,23.131863;113.302368,23.131830;113.302116,23.131804;113.302124,23.131788;113.302055,23.131781;113.301483,23.131689;113.301384,23.131676;113.301170,23.131639;113.301041,23.131584;113.300003,23.131424;113.298210,23.131107;113.297821,23.131062;113.297226,23.131006;113.296379,23.130999;113.295616,23.130980;113.295486,23.131006;113.295181,23.130999;113.294960,23.130993;113.293976,23.130980;113.293617,23.130974;113.293449,23.130968;113.291687,23.130934;113.291016,23.130915;113.291008,23.130915;113.289734,23.130901;113.289536,23.130968;113.289505,23.130964;113.289501,23.130964;113.289093,23.130959;113.288550,23.130951;113.287153,23.130885;113.286680,23.130885;113.286367,23.130877;113.286254,23.130859;113.286016,23.130833;113.285530,23.130864;113.285299,23.130946;113.285161,23.130994;113.284870,23.131098;113.284293,23.131233;113.284093,23.131254;113.283177,23.131254;113.281832,23.131254;113.281332,23.131263;113.281155,23.131254;113.279874,23.131254;113.279870,23.131254;113.279475,23.131254;113.279340,23.131254;113.279175,23.131150;113.278607,23.131155;113.278103,23.131137;113.276832,23.131107;113.276254,23.131107;113.275864,23.131111;113.274536,23.131063;113.273976,23.131050;113.273633,23.131046;113.273636,23.131046;113.273636,23.131042;113.273270,23.131039;113.272903,23.131029;113.272377,23.131042;113.271812,23.131081;113.271210,23.131115;113.270737,23.131151;113.270226,23.131184;113.269722,23.131220;113.269043,23.131268;113.268143,23.131338;113.267174,23.131393;113.266495,23.131432;113.265938,23.131479;113.265602,23.131498;113.264580,23.131540;113.264046,23.131571;113.264045,23.131571;113.263559,23.131597;113.263446,23.131749;113.263411,23.131853;113.263433,23.132413;113.263446,23.132665;113.263451,23.132765;113.263464,23.132904;113.263490,23.133320;113.263533,23.133867;113.263576,23.134227;113.263472,23.134258;113.263069,23.134310;113.262773,23.134358;113.262270,23.134440;113.261923,23.134514;113.261901,23.135456;113.261901,23.136211;113.261719,23.136393;113.261576,23.136254;113.260608,23.135794;113.260516,23.135751;113.260378,23.135703;113.260243,23.135616;113.260126,23.135503;113.260100,23.135477;113.259970,23.135317;113.259718,23.134839;113.259449,23.134201;113.259249,23.133824;113.259214,23.133550;113.259023,23.133151;113.258815,23.132708;113.258559,23.132530;113.258468,23.132483;113.258420,23.132422;113.258398,23.132348;113.258398,23.132253;113.258420,23.132196;113.258442,23.132161;113.258490,23.132127;113.258576,23.132096;113.258720,23.132096;113.258802,23.132153;113.258997,23.132144;113.259727,23.132023;113.260464,23.131901;113.261085,23.131797;113.261623,23.131710;113.262205,23.131628;113.262743,23.131549;113.263316,23.131493;113.263398,23.131484;113.264062,23.131450;113.264566,23.131424;113.265017,23.131402;113.265087,23.131393;113.265703,23.131363;113.265638,23.130825;113.265577,23.130182;113.265547,23.129935;113.265469,23.129106;113.265525,23.129002;113.266102,23.129015;113.266402,23.129049;113.266654,23.129093;113.266806,23.129106;113.267070,23.129093;113.267604,23.129084;113.267613,23.128841;113.267617,23.128646',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0715',\n",
       "         'end_time': '0830',\n",
       "         'via_num': '9',\n",
       "         'via_stops': [{'name': '体育中心',\n",
       "           'id': '440100017358029',\n",
       "           'location': '113.322205,23.133828'},\n",
       "          {'name': '锦城花园',\n",
       "           'id': '440100017358030',\n",
       "           'location': '113.310204,23.131817'},\n",
       "          {'name': '东峻广场',\n",
       "           'id': '440100017358031',\n",
       "           'location': '113.306900,23.131931'},\n",
       "          {'name': '东风东路站',\n",
       "           'id': '440100017358032',\n",
       "           'location': '113.302116,23.131804'},\n",
       "          {'name': '肿瘤医院',\n",
       "           'id': '440100017358033',\n",
       "           'location': '113.289505,23.130964'},\n",
       "          {'name': '越秀桥',\n",
       "           'id': '440100017358034',\n",
       "           'location': '113.279874,23.131254'},\n",
       "          {'name': '正骨医院',\n",
       "           'id': '440100017358035',\n",
       "           'location': '113.273633,23.131046'},\n",
       "          {'name': '东风中路',\n",
       "           'id': '440100017358036',\n",
       "           'location': '113.270226,23.131184'},\n",
       "          {'name': '中山纪念堂',\n",
       "           'id': '440100017358037',\n",
       "           'location': '113.264046,23.131571'}]},\n",
       "        {'departure_stop': {'name': '石牌桥',\n",
       "          'id': '440100017360045',\n",
       "          'location': '113.331289,23.133446'},\n",
       "         'arrival_stop': {'name': '广仁路总站',\n",
       "          'id': '440100017360034',\n",
       "          'location': '113.267609,23.128976'},\n",
       "         'name': 'B4路(天河智慧城核心区总站(高唐)--广仁路总站)',\n",
       "         'id': '440100017360',\n",
       "         'type': '快速公交系统',\n",
       "         'distance': '9457',\n",
       "         'duration': '1940',\n",
       "         'polyline': '113.331289,23.133446;113.330964,23.133455;113.330885,23.133455;113.329727,23.133498;113.329470,23.133520;113.328446,23.133559;113.328329,23.133568;113.328216,23.133576;113.326606,23.133655;113.325920,23.133685;113.324436,23.133767;113.323477,23.133806;113.323155,23.133819;113.321936,23.133832;113.321306,23.133841;113.321224,23.133885;113.320217,23.133937;113.319397,23.133980;113.318464,23.134045;113.317869,23.134084;113.316688,23.134132;113.316332,23.134141;113.316033,23.134154;113.315825,23.134175;113.315751,23.134266;113.315642,23.134349;113.315525,23.134388;113.315404,23.134401;113.315299,23.134384;113.315213,23.134358;113.315130,23.134301;113.315030,23.134197;113.314965,23.134028;113.314970,23.133859;113.315048,23.133711;113.315161,23.133615;113.315152,23.133407;113.315143,23.132765;113.315130,23.132053;113.315126,23.131606;113.315130,23.131189;113.315109,23.129996;113.315013,23.129931;113.314188,23.130339;113.313867,23.130477;113.313655,23.130569;113.313459,23.130612;113.313034,23.130794;113.312986,23.130816;113.312509,23.131020;113.312344,23.131059;113.312209,23.131128;113.311849,23.131267;113.311562,23.131393;113.310933,23.131649;113.310707,23.131706;113.310330,23.131788;113.309878,23.131888;113.309514,23.131931;113.308919,23.131970;113.308138,23.131957;113.307786,23.131944;113.307561,23.131944;113.307409,23.131944;113.307253,23.131936;113.307005,23.131931;113.306732,23.131927;113.306172,23.131914;113.306107,23.131914;113.305577,23.131910;113.305204,23.131905;113.305100,23.131905;113.304818,23.131901;113.304696,23.131892;113.304462,23.131888;113.303707,23.131879;113.303641,23.131879;113.303103,23.131862;113.302361,23.131832;113.302222,23.131814;113.302218,23.131814;113.302057,23.131797;113.301888,23.131771;113.301580,23.131727;113.301276,23.131684;113.301050,23.131610;113.299002,23.131267;113.297821,23.131081;113.297352,23.131020;113.297001,23.131003;113.296714,23.130998;113.295421,23.130981;113.295312,23.131003;113.295182,23.130998;113.294961,23.130994;113.293976,23.130981;113.293615,23.130972;113.293451,23.130968;113.291693,23.130933;113.291016,23.130916;113.290660,23.130907;113.289926,23.130903;113.289719,23.130910;113.289660,23.130939;113.289546,23.130966;113.289462,23.130959;113.289449,23.130959;113.289093,23.130959;113.288550,23.130951;113.287153,23.130885;113.286680,23.130885;113.286367,23.130877;113.286254,23.130859;113.286016,23.130833;113.285530,23.130864;113.285299,23.130946;113.285161,23.130994;113.284870,23.131098;113.284293,23.131233;113.284093,23.131254;113.283177,23.131254;113.281832,23.131254;113.281332,23.131263;113.281155,23.131254;113.279870,23.131254;113.279874,23.131254;113.279870,23.131254;113.279475,23.131254;113.279340,23.131254;113.279175,23.131150;113.278607,23.131155;113.278103,23.131137;113.276832,23.131107;113.276254,23.131107;113.275864,23.131111;113.274536,23.131063;113.273976,23.131050;113.273624,23.131046;113.273628,23.131042;113.273270,23.131039;113.272903,23.131029;113.272377,23.131042;113.271812,23.131081;113.271210,23.131115;113.270737,23.131151;113.270233,23.131184;113.270230,23.131181;113.269727,23.131220;113.269084,23.131267;113.269041,23.131272;113.268138,23.131337;113.267170,23.131393;113.266350,23.131450;113.265946,23.131480;113.265608,23.131497;113.264579,23.131541;113.263559,23.131597;113.263446,23.131749;113.263411,23.131853;113.263433,23.132387;113.263433,23.132383;113.263433,23.132413;113.263451,23.132765;113.263464,23.132904;113.263490,23.133320;113.263533,23.133867;113.263576,23.134227;113.263472,23.134258;113.263069,23.134310;113.262773,23.134358;113.262270,23.134440;113.262127,23.134470;113.261923,23.134514;113.261901,23.135456;113.261901,23.136211;113.261719,23.136393;113.261576,23.136254;113.260608,23.135794;113.260516,23.135751;113.260378,23.135703;113.260243,23.135616;113.260100,23.135477;113.259970,23.135317;113.259740,23.134878;113.259718,23.134839;113.259449,23.134201;113.259249,23.133824;113.259214,23.133550;113.259023,23.133151;113.258815,23.132708;113.258559,23.132530;113.258468,23.132483;113.258420,23.132422;113.258398,23.132348;113.258398,23.132253;113.258420,23.132196;113.258442,23.132161;113.258490,23.132127;113.258576,23.132096;113.258720,23.132096;113.258802,23.132153;113.258997,23.132144;113.259727,23.132023;113.260464,23.131901;113.261085,23.131797;113.261623,23.131710;113.262205,23.131628;113.262743,23.131549;113.263316,23.131493;113.263398,23.131484;113.263594,23.131476;113.264062,23.131450;113.264566,23.131424;113.265017,23.131402;113.265087,23.131393;113.265703,23.131363;113.265638,23.130825;113.265625,23.130686;113.265577,23.130182;113.265547,23.129935;113.265469,23.129106;113.265525,23.129002;113.266102,23.129015;113.266402,23.129049;113.266654,23.129093;113.266806,23.129106;113.266918,23.129102;113.267070,23.129093;113.267604,23.129084;113.267609,23.128976',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '9',\n",
       "         'via_stops': [{'name': '体育中心',\n",
       "           'id': '440100017360046',\n",
       "           'location': '113.323477,23.133806'},\n",
       "          {'name': '锦城花园',\n",
       "           'id': '440100017360047',\n",
       "           'location': '113.310330,23.131788'},\n",
       "          {'name': '东峻广场',\n",
       "           'id': '440100017360027',\n",
       "           'location': '113.306732,23.131927'},\n",
       "          {'name': '东风东路站',\n",
       "           'id': '440100017360028',\n",
       "           'location': '113.302222,23.131814'},\n",
       "          {'name': '肿瘤医院',\n",
       "           'id': '440100017360029',\n",
       "           'location': '113.289462,23.130959'},\n",
       "          {'name': '越秀桥',\n",
       "           'id': '440100017360030',\n",
       "           'location': '113.279870,23.131254'},\n",
       "          {'name': '正骨医院',\n",
       "           'id': '440100017360031',\n",
       "           'location': '113.273624,23.131046'},\n",
       "          {'name': '东风中路',\n",
       "           'id': '440100017360032',\n",
       "           'location': '113.270233,23.131184'},\n",
       "          {'name': '中山纪念堂(连新路)',\n",
       "           'id': '440100017360050',\n",
       "           'location': '113.263433,23.132387'}]},\n",
       "        {'departure_stop': {'name': '石牌桥',\n",
       "          'id': '440100017356046',\n",
       "          'location': '113.331528,23.133442'},\n",
       "         'arrival_stop': {'name': '广仁路总站',\n",
       "          'id': '440100017356037',\n",
       "          'location': '113.267617,23.128659'},\n",
       "         'name': 'B4A路(科学城总站(天泰二路)--广仁路总站)',\n",
       "         'id': '440100017356',\n",
       "         'type': '快速公交系统',\n",
       "         'distance': '9634',\n",
       "         'duration': '1953',\n",
       "         'polyline': '113.331528,23.133442;113.330964,23.133455;113.330885,23.133455;113.329727,23.133498;113.329470,23.133520;113.328446,23.133559;113.328216,23.133576;113.326606,23.133655;113.325920,23.133685;113.324436,23.133767;113.323316,23.133815;113.323155,23.133819;113.321936,23.133832;113.321306,23.133841;113.321212,23.133800;113.320213,23.133846;113.319407,23.133862;113.319397,23.133980;113.318464,23.134045;113.317869,23.134084;113.316688,23.134132;113.316332,23.134141;113.316033,23.134154;113.315825,23.134175;113.315751,23.134266;113.315642,23.134349;113.315525,23.134388;113.315404,23.134401;113.315299,23.134384;113.315213,23.134358;113.315130,23.134301;113.315030,23.134197;113.314965,23.134028;113.314970,23.133859;113.315048,23.133711;113.315161,23.133615;113.315152,23.133407;113.315143,23.132765;113.315130,23.132053;113.315126,23.131606;113.315130,23.131189;113.315109,23.129996;113.315013,23.129931;113.314188,23.130339;113.313867,23.130477;113.313655,23.130569;113.313459,23.130612;113.313034,23.130794;113.312986,23.130816;113.312509,23.131020;113.312344,23.131059;113.312209,23.131128;113.311849,23.131267;113.311562,23.131393;113.310933,23.131649;113.310707,23.131706;113.310308,23.131793;113.310310,23.131794;113.309875,23.131889;113.309509,23.131931;113.308914,23.131971;113.308144,23.131958;113.307785,23.131945;113.307564,23.131945;113.307281,23.131935;113.307007,23.131931;113.306732,23.131927;113.306168,23.131914;113.306107,23.131914;113.305504,23.131908;113.305199,23.131905;113.304779,23.131893;113.304695,23.131893;113.304459,23.131889;113.303642,23.131880;113.303101,23.131863;113.302368,23.131830;113.302116,23.131800;113.302116,23.131788;113.302055,23.131781;113.301483,23.131689;113.301384,23.131676;113.301170,23.131639;113.301041,23.131584;113.300003,23.131424;113.298210,23.131107;113.297821,23.131062;113.297226,23.131006;113.296379,23.130999;113.295616,23.130980;113.295486,23.131006;113.295181,23.130999;113.294960,23.130993;113.293976,23.130980;113.293617,23.130974;113.293449,23.130968;113.291687,23.130934;113.291016,23.130915;113.291008,23.130915;113.289734,23.130901;113.289536,23.130968;113.289467,23.130964;113.289466,23.130964;113.289093,23.130959;113.288550,23.130951;113.287153,23.130885;113.286680,23.130885;113.286367,23.130877;113.286254,23.130859;113.286016,23.130833;113.285530,23.130864;113.285299,23.130946;113.285161,23.130994;113.284870,23.131098;113.284293,23.131233;113.284093,23.131254;113.283177,23.131254;113.281832,23.131254;113.281332,23.131263;113.281155,23.131254;113.279870,23.131254;113.279475,23.131254;113.279340,23.131254;113.279175,23.131150;113.278607,23.131155;113.278103,23.131137;113.276832,23.131107;113.276254,23.131107;113.275864,23.131111;113.274536,23.131063;113.273976,23.131050;113.273533,23.131042;113.273529,23.131042;113.273411,23.131042;113.273268,23.131037;113.273116,23.131037;113.272374,23.131042;113.271814,23.131081;113.271207,23.131115;113.270447,23.131163;113.270252,23.131181;113.269727,23.131220;113.269084,23.131267;113.269041,23.131272;113.268138,23.131337;113.267170,23.131393;113.266350,23.131450;113.265946,23.131480;113.265608,23.131497;113.264579,23.131541;113.263559,23.131597;113.263446,23.131749;113.263411,23.131853;113.263433,23.132413;113.263437,23.132496;113.263451,23.132765;113.263464,23.132904;113.263490,23.133320;113.263533,23.133867;113.263576,23.134227;113.263472,23.134258;113.263069,23.134310;113.262773,23.134358;113.262504,23.134401;113.262270,23.134440;113.261923,23.134514;113.261901,23.135456;113.261901,23.136211;113.261719,23.136393;113.261576,23.136254;113.260655,23.135816;113.260608,23.135794;113.260516,23.135751;113.260378,23.135703;113.260243,23.135616;113.260100,23.135477;113.259970,23.135317;113.259718,23.134839;113.259449,23.134201;113.259249,23.133824;113.259214,23.133550;113.259023,23.133151;113.258815,23.132708;113.258559,23.132530;113.258468,23.132483;113.258420,23.132422;113.258398,23.132348;113.258398,23.132253;113.258420,23.132196;113.258442,23.132161;113.258490,23.132127;113.258576,23.132096;113.258720,23.132096;113.258802,23.132153;113.258997,23.132144;113.259727,23.132023;113.260464,23.131901;113.261085,23.131797;113.261623,23.131710;113.262205,23.131628;113.262743,23.131549;113.263316,23.131493;113.263398,23.131484;113.264062,23.131450;113.264566,23.131424;113.265017,23.131402;113.265087,23.131393;113.265703,23.131363;113.265638,23.130825;113.265577,23.130182;113.265547,23.129935;113.265469,23.129106;113.265525,23.129002;113.266102,23.129015;113.266402,23.129049;113.266654,23.129093;113.266806,23.129106;113.267070,23.129093;113.267604,23.129084;113.267613,23.128841;113.267617,23.128659',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0645',\n",
       "         'end_time': '2030',\n",
       "         'via_num': '9',\n",
       "         'via_stops': [{'name': '体育中心',\n",
       "           'id': '440100017356047',\n",
       "           'location': '113.323316,23.133815'},\n",
       "          {'name': '锦城花园',\n",
       "           'id': '440100017356048',\n",
       "           'location': '113.310308,23.131793'},\n",
       "          {'name': '东峻广场',\n",
       "           'id': '440100017356030',\n",
       "           'location': '113.306732,23.131927'},\n",
       "          {'name': '东风东路站',\n",
       "           'id': '440100017356031',\n",
       "           'location': '113.302116,23.131800'},\n",
       "          {'name': '肿瘤医院',\n",
       "           'id': '440100017356032',\n",
       "           'location': '113.289467,23.130964'},\n",
       "          {'name': '越秀桥',\n",
       "           'id': '440100017356049',\n",
       "           'location': '113.279870,23.131254'},\n",
       "          {'name': '正骨医院',\n",
       "           'id': '440100017356034',\n",
       "           'location': '113.273533,23.131042'},\n",
       "          {'name': '东风中路',\n",
       "           'id': '440100017356035',\n",
       "           'location': '113.270252,23.131181'},\n",
       "          {'name': '中山纪念堂(连新路)',\n",
       "           'id': '440100017356059',\n",
       "           'location': '113.263437,23.132496'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.267616,23.128658',\n",
       "       'destination': '113.264442,23.128971',\n",
       "       'distance': '438',\n",
       "       'duration': '375',\n",
       "       'steps': [{'instruction': '沿广仁路步行47米左转',\n",
       "         'road': '广仁路',\n",
       "         'distance': '47',\n",
       "         'duration': [],\n",
       "         'polyline': '113.267616,23.128658;113.267616,23.128841;113.267616,23.129084',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿越华路步行212米左转',\n",
       "         'road': '越华路',\n",
       "         'distance': '212',\n",
       "         'duration': [],\n",
       "         'polyline': '113.267609,23.129084;113.267075,23.129093;113.266808,23.129107;113.266655,23.129097;113.266403,23.129053;113.266106,23.129019;113.265526,23.129005',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿吉祥路步行35米右转',\n",
       "         'road': '吉祥路',\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265526,23.129002;113.265503,23.128685',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿府前路步行57米右转',\n",
       "         'road': '府前路',\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265503,23.128681;113.264938,23.128719',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行35米左转',\n",
       "         'road': [],\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.128719;113.264938,23.129036',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.129036;113.264771,23.128981;113.264442,23.128971',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '4135',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1189',\n",
       "    'distance': '13790',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.356827,23.157383',\n",
       "       'destination': '113.352959,23.152239',\n",
       "       'distance': '962',\n",
       "       'duration': '824',\n",
       "       'steps': [{'instruction': '沿嵩山路步行129米向右前方行走',\n",
       "         'road': '嵩山路',\n",
       "         'distance': '129',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356827,23.157383;113.356949,23.156876;113.357071,23.156397;113.357132,23.156260',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行173米向右前方行走',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '173',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357132,23.156254;113.357101,23.156199;113.357101,23.156063;113.357086,23.155834;113.357086,23.155525;113.357086,23.154678',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行189米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '189',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357086,23.154675;113.356956,23.154552;113.356918,23.154501;113.356796,23.154119;113.356613,23.153784;113.356598,23.153715;113.356621,23.153402;113.356560,23.153099',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行79米右转',\n",
       "         'road': [],\n",
       "         'distance': '79',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356560,23.153095;113.356613,23.152874;113.356735,23.152575;113.356766,23.152412',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿五山路步行259米向右前方行走',\n",
       "         'road': '五山路',\n",
       "         'distance': '259',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356766,23.152409;113.354881,23.152218;113.354446,23.152170;113.354256,23.152105',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行133米到达华农大正门',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '133',\n",
       "         'duration': [],\n",
       "         'polyline': '113.354256,23.152102;113.353722,23.152126;113.353592,23.152153;113.352959,23.152239',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达华农大正门'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '华农大正门',\n",
       "          'id': '440100014872018',\n",
       "          'location': '113.352882,23.152248'},\n",
       "         'arrival_stop': {'name': '天河北公交总站',\n",
       "          'id': '440100014872041',\n",
       "          'location': '113.334731,23.141667'},\n",
       "         'name': '78A路(天河智慧城核心区总站(高唐)--天河北公交总站)',\n",
       "         'id': '440100014872',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '2610',\n",
       "         'duration': '958',\n",
       "         'polyline': '113.352882,23.152248;113.352432,23.152275;113.352158,23.152271;113.351929,23.152254;113.351868,23.152248;113.351768,23.152231;113.351517,23.152166;113.351318,23.152092;113.351128,23.151995;113.350945,23.151884;113.350739,23.151722;113.350159,23.151159;113.349899,23.150934;113.349495,23.150633;113.349030,23.150343;113.348900,23.150261;113.348602,23.150032;113.348106,23.149576;113.347885,23.149336;113.347725,23.149115;113.347527,23.148821;113.347122,23.148191;113.346863,23.147781;113.346664,23.147461;113.346657,23.147236;113.346527,23.146936;113.346336,23.146338;113.346199,23.145773;113.346123,23.145496;113.346039,23.145065;113.345955,23.144670;113.345917,23.144375;113.345909,23.144125;113.345909,23.143841;113.345940,23.143471;113.345955,23.142710;113.345985,23.141884;113.345947,23.141636;113.345810,23.141663;113.345726,23.141663;113.345581,23.141644;113.345016,23.141640;113.344444,23.141619;113.344070,23.141602;113.342903,23.141548;113.342606,23.141529;113.341576,23.141499;113.340286,23.141453;113.340210,23.141436;113.339989,23.141411;113.339767,23.141411;113.339333,23.141432;113.339332,23.141432;113.339058,23.141441;113.338451,23.141476;113.337244,23.141545;113.336037,23.141615;113.335239,23.141645;113.334961,23.141658;113.334731,23.141667',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '4',\n",
       "         'via_stops': [{'name': '华工大',\n",
       "           'id': '440100014872019',\n",
       "           'location': '113.349030,23.150343'},\n",
       "          {'name': '五山路口',\n",
       "           'id': '440100014872036',\n",
       "           'location': '113.344444,23.141619'},\n",
       "          {'name': '龙口东',\n",
       "           'id': '440100014872021',\n",
       "           'location': '113.339333,23.141432'},\n",
       "          {'name': '龙口西',\n",
       "           'id': '440100014872043',\n",
       "           'location': '113.335239,23.141645'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.334732,23.141670',\n",
       "       'destination': '113.334763,23.141670',\n",
       "       'distance': '3',\n",
       "       'duration': '2',\n",
       "       'steps': [{'instruction': '沿天河北路步行3米到达天河北公交总站',\n",
       "         'road': '天河北路',\n",
       "         'distance': '3',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334732,23.141670;113.334763,23.141670',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达天河北公交总站'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '天河北公交总站',\n",
       "          'id': '440100016961002',\n",
       "          'location': '113.334763,23.141666'},\n",
       "         'arrival_stop': {'name': '公园前',\n",
       "          'id': '440100016961016',\n",
       "          'location': '113.265419,23.127947'},\n",
       "         'name': '6路(天河北公交总站--黄沙总站)',\n",
       "         'id': '440100016961',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '9991',\n",
       "         'duration': '2158',\n",
       "         'polyline': '113.334763,23.141666;113.334259,23.141689;113.333900,23.141703;113.333633,23.141710;113.333038,23.141735;113.332825,23.141735;113.332596,23.141735;113.332207,23.141716;113.330986,23.141640;113.330505,23.141619;113.330353,23.141615;113.329758,23.141588;113.329437,23.141562;113.329094,23.141541;113.329010,23.141525;113.328461,23.141506;113.328354,23.141502;113.328087,23.141493;113.327278,23.141449;113.325745,23.141367;113.325661,23.141367;113.325096,23.141346;113.324806,23.141342;113.324348,23.141315;113.323914,23.141293;113.323814,23.141289;113.323128,23.141249;113.323021,23.141245;113.322533,23.141216;113.322105,23.141197;113.322021,23.141190;113.321678,23.141180;113.321556,23.141176;113.321129,23.141155;113.320808,23.141138;113.320419,23.141111;113.320221,23.141098;113.319458,23.141056;113.318916,23.141043;113.318420,23.141029;113.317253,23.140978;113.316933,23.140961;113.316299,23.140928;113.315849,23.140915;113.315468,23.140907;113.315147,23.140993;113.315056,23.141029;113.315010,23.141056;113.314949,23.141138;113.314926,23.141230;113.314903,23.141407;113.314896,23.141506;113.314888,23.141611;113.314728,23.143055;113.314636,23.143293;113.314507,23.144936;113.314430,23.145525;113.314224,23.145525;113.314255,23.145273;113.314255,23.145187;113.314354,23.144119;113.314362,23.144119;113.314438,23.143337;113.314079,23.143429;113.313072,23.143702;113.312988,23.143715;113.312912,23.143728;113.312775,23.143747;113.312233,23.143755;113.311978,23.143761;113.311691,23.143711;113.311519,23.143717;113.311328,23.144062;113.311028,23.144531;113.310799,23.144896;113.310608,23.145235;113.310539,23.145405;113.310509,23.145504;113.310448,23.145712;113.310234,23.146328;113.310104,23.146694;113.310028,23.146723;113.309669,23.146645;113.308777,23.146448;113.307922,23.146250;113.307762,23.146238;113.307594,23.146254;113.307510,23.146271;113.307411,23.146307;113.306999,23.146502;113.306992,23.146502;113.306999,23.146502;113.306877,23.146553;113.306824,23.146597;113.306641,23.146793;113.306389,23.146749;113.306114,23.146658;113.305840,23.146566;113.305588,23.146471;113.305351,23.146366;113.305168,23.146284;113.304855,23.146147;113.304642,23.146025;113.304459,23.145910;113.304306,23.145779;113.304092,23.145552;113.303894,23.145290;113.303589,23.144823;113.303383,23.144571;113.303207,23.144480;113.302628,23.143911;113.302628,23.143908;113.302460,23.143747;113.302299,23.143589;113.302010,23.143297;113.301926,23.143120;113.301834,23.143042;113.301094,23.142323;113.300957,23.142221;113.300636,23.141953;113.300095,23.141476;113.300034,23.141432;113.298958,23.140570;113.298264,23.139931;113.297775,23.139526;113.297028,23.138849;113.296852,23.138758;113.296364,23.138311;113.295807,23.137787;113.295540,23.137531;113.295326,23.137318;113.295227,23.137205;113.295082,23.137032;113.295006,23.136845;113.293991,23.135559;113.293793,23.135303;113.293648,23.135195;113.293549,23.135187;113.293472,23.135164;113.293388,23.135113;113.293335,23.135044;113.293137,23.135059;113.293121,23.135059;113.292313,23.135195;113.291512,23.135338;113.291016,23.135418;113.290955,23.135429;113.290649,23.135483;113.289727,23.135660;113.289318,23.135742;113.288971,23.135801;113.288498,23.135925;113.288284,23.135981;113.287903,23.136089;113.287811,23.136051;113.287239,23.136244;113.286888,23.136349;113.286827,23.136431;113.286674,23.136484;113.285851,23.136770;113.284798,23.137117;113.284531,23.137205;113.283882,23.137413;113.283295,23.137630;113.283119,23.137695;113.282997,23.137743;113.282913,23.137774;113.282425,23.137978;113.281929,23.138182;113.281776,23.138247;113.281677,23.138283;113.281250,23.138464;113.281197,23.138485;113.280838,23.138641;113.279778,23.139067;113.279579,23.139124;113.279243,23.139250;113.279114,23.139280;113.278450,23.139400;113.278389,23.139408;113.278229,23.139431;113.277779,23.139471;113.277786,23.139471;113.277779,23.139471;113.277344,23.139509;113.277077,23.139530;113.276909,23.139544;113.276161,23.139595;113.275452,23.139658;113.275368,23.139658;113.275208,23.139654;113.275154,23.139635;113.275101,23.139608;113.274971,23.139500;113.274971,23.139301;113.274879,23.139158;113.274345,23.138615;113.273163,23.137474;113.273056,23.137386;113.272903,23.137253;113.272850,23.137205;113.272285,23.136675;113.272217,23.136616;113.272079,23.136463;113.271957,23.136297;113.271873,23.136097;113.271866,23.136047;113.271797,23.135572;113.271774,23.135118;113.271767,23.134272;113.271759,23.134041;113.271744,23.133615;113.271736,23.133459;113.271706,23.132946;113.271683,23.132364;113.271561,23.131203;113.271538,23.131002;113.271431,23.130537;113.271416,23.130251;113.271461,23.129753;113.271477,23.129627;113.271515,23.129475;113.271461,23.129313;113.271431,23.129276;113.271332,23.129202;113.271172,23.129198;113.271042,23.129185;113.270821,23.129175;113.270721,23.129162;113.270554,23.129148;113.270294,23.129131;113.270126,23.129131;113.269958,23.129135;113.269722,23.129141;113.269325,23.129154;113.269135,23.129158;113.269043,23.129158;113.268761,23.129162;113.268318,23.129148;113.268112,23.129141;113.267883,23.129135;113.267815,23.129175;113.267670,23.129181;113.267342,23.129175;113.266922,23.129185;113.266914,23.129185;113.266808,23.129185;113.266373,23.129116;113.266113,23.129110;113.265915,23.129107;113.265549,23.129097;113.265465,23.129002;113.265457,23.128693;113.265419,23.127947',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '13',\n",
       "         'via_stops': [{'name': '天河北路',\n",
       "           'id': '440100016961003',\n",
       "           'location': '113.330505,23.141619'},\n",
       "          {'name': '时代广场',\n",
       "           'id': '440100016961004',\n",
       "           'location': '113.318916,23.141043'},\n",
       "          {'name': '广州体院',\n",
       "           'id': '440100016961005',\n",
       "           'location': '113.314354,23.144119'},\n",
       "          {'name': '水荫路',\n",
       "           'id': '440100016961006',\n",
       "           'location': '113.310509,23.145504'},\n",
       "          {'name': '十九路军陵园',\n",
       "           'id': '440100016961007',\n",
       "           'location': '113.306999,23.146502'},\n",
       "          {'name': '动物园',\n",
       "           'id': '440100016961027',\n",
       "           'location': '113.302628,23.143911'},\n",
       "          {'name': '黄花岗',\n",
       "           'id': '440100016961009',\n",
       "           'location': '113.295807,23.137787'},\n",
       "          {'name': '区庄立交西站',\n",
       "           'id': '440100016961028',\n",
       "           'location': '113.290955,23.135429'},\n",
       "          {'name': '白云宾馆',\n",
       "           'id': '440100016961032',\n",
       "           'location': '113.288284,23.135981'},\n",
       "          {'name': '广东电视台',\n",
       "           'id': '440100016961033',\n",
       "           'location': '113.283119,23.137695'},\n",
       "          {'name': '小北',\n",
       "           'id': '440100016961013',\n",
       "           'location': '113.277779,23.139471'},\n",
       "          {'name': '小北花圈',\n",
       "           'id': '440100016961014',\n",
       "           'location': '113.272285,23.136675'},\n",
       "          {'name': '越华路',\n",
       "           'id': '440100016961015',\n",
       "           'location': '113.266922,23.129185'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.265427,23.127956',\n",
       "       'destination': '113.264442,23.128971',\n",
       "       'distance': '224',\n",
       "       'duration': '192',\n",
       "       'steps': [{'instruction': '沿吉祥路步行80米左转',\n",
       "         'road': '吉祥路',\n",
       "         'distance': '80',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265427,23.127956;113.265434,23.128017;113.265503,23.128681',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿府前路步行57米右转',\n",
       "         'road': '府前路',\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265503,23.128681;113.264938,23.128719',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行35米左转',\n",
       "         'road': [],\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.128719;113.264938,23.129036',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.129036;113.264771,23.128981;113.264442,23.128971',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '4123',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '1198',\n",
       "    'distance': '13947',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.356827,23.157383',\n",
       "       'destination': '113.352959,23.152239',\n",
       "       'distance': '962',\n",
       "       'duration': '824',\n",
       "       'steps': [{'instruction': '沿嵩山路步行129米向右前方行走',\n",
       "         'road': '嵩山路',\n",
       "         'distance': '129',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356827,23.157383;113.356949,23.156876;113.357071,23.156397;113.357132,23.156260',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行173米向右前方行走',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '173',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357132,23.156254;113.357101,23.156199;113.357101,23.156063;113.357086,23.155834;113.357086,23.155525;113.357086,23.154678',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行189米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '189',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357086,23.154675;113.356956,23.154552;113.356918,23.154501;113.356796,23.154119;113.356613,23.153784;113.356598,23.153715;113.356621,23.153402;113.356560,23.153099',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行79米右转',\n",
       "         'road': [],\n",
       "         'distance': '79',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356560,23.153095;113.356613,23.152874;113.356735,23.152575;113.356766,23.152412',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿五山路步行259米向右前方行走',\n",
       "         'road': '五山路',\n",
       "         'distance': '259',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356766,23.152409;113.354881,23.152218;113.354446,23.152170;113.354256,23.152105',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行133米到达华农大正门',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '133',\n",
       "         'duration': [],\n",
       "         'polyline': '113.354256,23.152102;113.353722,23.152126;113.353592,23.152153;113.352959,23.152239',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达华农大正门'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '华农大正门',\n",
       "          'id': '440100014157003',\n",
       "          'location': '113.352956,23.152240'},\n",
       "         'arrival_stop': {'name': '龙口西',\n",
       "          'id': '440100014157007',\n",
       "          'location': '113.334877,23.141663'},\n",
       "         'name': '41路(汇景北路总站--广州火车东站总站)',\n",
       "         'id': '440100014157',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '2758',\n",
       "         'duration': '939',\n",
       "         'polyline': '113.352956,23.152240;113.352959,23.152241;113.352905,23.152248;113.352432,23.152275;113.352158,23.152271;113.351929,23.152254;113.351868,23.152248;113.351768,23.152231;113.351517,23.152166;113.351318,23.152092;113.351128,23.151995;113.350945,23.151884;113.350739,23.151722;113.350159,23.151159;113.349899,23.150934;113.349495,23.150633;113.349022,23.150337;113.348900,23.150261;113.348602,23.150032;113.348106,23.149576;113.347885,23.149336;113.347725,23.149115;113.347527,23.148821;113.347122,23.148191;113.346863,23.147781;113.346664,23.147461;113.346657,23.147236;113.346527,23.146936;113.346336,23.146338;113.346199,23.145773;113.346123,23.145496;113.346039,23.145065;113.345955,23.144670;113.345917,23.144375;113.345909,23.144125;113.345909,23.143841;113.345940,23.143471;113.345955,23.142723;113.345985,23.141884;113.345955,23.141657;113.345779,23.141657;113.345695,23.141657;113.345016,23.141666;113.344475,23.141644;113.344070,23.141630;113.342606,23.141529;113.341576,23.141499;113.340286,23.141453;113.340210,23.141436;113.339989,23.141411;113.339767,23.141411;113.339424,23.141428;113.339058,23.141439;113.338455,23.141476;113.337242,23.141544;113.336037,23.141615;113.334961,23.141657;113.334877,23.141663',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '2130',\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '华工大',\n",
       "           'id': '440100014157004',\n",
       "           'location': '113.349022,23.150337'},\n",
       "          {'name': '五山路口',\n",
       "           'id': '440100014157011',\n",
       "           'location': '113.344475,23.141644'},\n",
       "          {'name': '龙口东',\n",
       "           'id': '440100014157006',\n",
       "           'location': '113.339424,23.141428'}]},\n",
       "        {'departure_stop': {'name': '华农大正门',\n",
       "          'id': '440100016305003',\n",
       "          'location': '113.352852,23.152248'},\n",
       "         'arrival_stop': {'name': '龙口西',\n",
       "          'id': '440100016305007',\n",
       "          'location': '113.335395,23.141641'},\n",
       "         'name': '197路(汇景北路总站--昌岗路总站)',\n",
       "         'id': '440100016305',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '2587',\n",
       "         'duration': '990',\n",
       "         'polyline': '113.352852,23.152248;113.352432,23.152275;113.352158,23.152271;113.351929,23.152254;113.351868,23.152248;113.351768,23.152231;113.351517,23.152166;113.351318,23.152092;113.351128,23.151995;113.350945,23.151884;113.350739,23.151722;113.350159,23.151159;113.349899,23.150934;113.349495,23.150633;113.349068,23.150373;113.349075,23.150373;113.349068,23.150373;113.348900,23.150261;113.348602,23.150032;113.348106,23.149576;113.347885,23.149336;113.347725,23.149115;113.347527,23.148821;113.347122,23.148191;113.346863,23.147781;113.346664,23.147461;113.346657,23.147236;113.346527,23.146936;113.346336,23.146338;113.346199,23.145773;113.346123,23.145496;113.346039,23.145065;113.345955,23.144670;113.345917,23.144375;113.345909,23.144125;113.345909,23.143841;113.345940,23.143471;113.345955,23.142723;113.345985,23.141884;113.345955,23.141657;113.345779,23.141657;113.345695,23.141657;113.344887,23.141663;113.344559,23.141649;113.344070,23.141630;113.342606,23.141529;113.341576,23.141499;113.340286,23.141453;113.340210,23.141436;113.339989,23.141411;113.339767,23.141411;113.339592,23.141420;113.339592,23.141419;113.339058,23.141441;113.338451,23.141476;113.337244,23.141545;113.336037,23.141615;113.335395,23.141641',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '华工大',\n",
       "           'id': '440100016305004',\n",
       "           'location': '113.349068,23.150373'},\n",
       "          {'name': '五山路口',\n",
       "           'id': '440100016305023',\n",
       "           'location': '113.344559,23.141649'},\n",
       "          {'name': '龙口东',\n",
       "           'id': '440100016305006',\n",
       "           'location': '113.339592,23.141420'}]},\n",
       "        {'departure_stop': {'name': '华农大正门',\n",
       "          'id': '440100016334009',\n",
       "          'location': '113.352938,23.152244'},\n",
       "         'arrival_stop': {'name': '龙口西',\n",
       "          'id': '440100016334013',\n",
       "          'location': '113.335052,23.141653'},\n",
       "         'name': '20路(凌塘环村路总站--大塘总站)',\n",
       "         'id': '440100016334',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '2683',\n",
       "         'duration': '993',\n",
       "         'polyline': '113.352938,23.152244;113.352938,23.152240;113.352938,23.152244;113.352904,23.152248;113.352439,23.152274;113.351931,23.152253;113.351871,23.152248;113.351766,23.152231;113.351523,23.152166;113.351319,23.152092;113.351128,23.151997;113.350946,23.151884;113.350734,23.151723;113.350156,23.151159;113.349900,23.150933;113.349492,23.150634;113.349028,23.150343;113.349023,23.150343;113.348898,23.150260;113.348607,23.150030;113.348103,23.149575;113.347882,23.149336;113.347721,23.149115;113.347526,23.148819;113.347114,23.148190;113.346966,23.147938;113.346875,23.147760;113.346753,23.147496;113.346549,23.146966;113.346337,23.146337;113.346194,23.145773;113.346128,23.145495;113.346033,23.145065;113.345955,23.144670;113.345920,23.144375;113.345911,23.144123;113.345911,23.143841;113.345942,23.143472;113.345959,23.142721;113.345981,23.141884;113.345972,23.141658;113.345755,23.141654;113.345699,23.141654;113.345022,23.141636;113.344501,23.141623;113.344067,23.141615;113.343012,23.141562;113.342604,23.141528;113.341571,23.141497;113.340286,23.141454;113.340217,23.141437;113.339991,23.141411;113.339770,23.141411;113.339635,23.141415;113.339638,23.141415;113.339058,23.141439;113.338455,23.141476;113.337242,23.141544;113.336037,23.141615;113.335052,23.141653',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '华工大',\n",
       "           'id': '440100016334010',\n",
       "           'location': '113.349028,23.150343'},\n",
       "          {'name': '五山路口',\n",
       "           'id': '440100016334026',\n",
       "           'location': '113.344501,23.141623'},\n",
       "          {'name': '龙口东',\n",
       "           'id': '440100016334012',\n",
       "           'location': '113.339635,23.141415'}]},\n",
       "        {'departure_stop': {'name': '华农大正门',\n",
       "          'id': '440100014874012',\n",
       "          'location': '113.353012,23.152231'},\n",
       "         'arrival_stop': {'name': '龙口西',\n",
       "          'id': '440100014874016',\n",
       "          'location': '113.335117,23.141649'},\n",
       "         'name': '78路(岑村总站--东山广场总站)',\n",
       "         'id': '440100014874',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '2595',\n",
       "         'duration': '999',\n",
       "         'polyline': '113.353012,23.152231;113.352904,23.152248;113.352439,23.152274;113.351931,23.152253;113.351871,23.152248;113.351766,23.152231;113.351523,23.152166;113.351319,23.152092;113.351128,23.151997;113.350946,23.151884;113.350734,23.151723;113.350156,23.151159;113.349900,23.150933;113.349492,23.150634;113.349145,23.150417;113.349141,23.150417;113.348898,23.150260;113.348607,23.150030;113.348103,23.149575;113.347882,23.149336;113.347721,23.149115;113.347526,23.148819;113.347114,23.148190;113.346966,23.147938;113.346875,23.147760;113.346753,23.147496;113.346549,23.146966;113.346337,23.146337;113.346194,23.145773;113.346128,23.145495;113.346033,23.145065;113.345955,23.144670;113.345920,23.144375;113.345911,23.144123;113.345911,23.143841;113.345942,23.143472;113.345959,23.142652;113.345981,23.141884;113.345972,23.141658;113.345755,23.141654;113.345699,23.141654;113.345022,23.141636;113.344557,23.141623;113.344553,23.141623;113.344067,23.141615;113.343012,23.141562;113.342604,23.141528;113.341571,23.141497;113.340286,23.141454;113.340217,23.141437;113.339991,23.141411;113.339800,23.141411;113.339796,23.141411;113.339770,23.141411;113.339058,23.141441;113.338451,23.141476;113.337244,23.141545;113.336037,23.141615;113.335117,23.141649',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '3',\n",
       "         'via_stops': [{'name': '华工大',\n",
       "           'id': '440100014874013',\n",
       "           'location': '113.349145,23.150417'},\n",
       "          {'name': '五山路口',\n",
       "           'id': '440100014874014',\n",
       "           'location': '113.344557,23.141623'},\n",
       "          {'name': '龙口东',\n",
       "           'id': '440100014874015',\n",
       "           'location': '113.339800,23.141411'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.334877,23.141663',\n",
       "       'destination': '113.334763,23.141666',\n",
       "       'distance': '12',\n",
       "       'duration': '10',\n",
       "       'steps': [{'instruction': '沿天河北路步行12米到达天河北公交总站',\n",
       "         'road': '天河北路',\n",
       "         'distance': '12',\n",
       "         'duration': [],\n",
       "         'polyline': '113.334877,23.141663;113.334763,23.141666',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达天河北公交总站'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '天河北公交总站',\n",
       "          'id': '440100016961002',\n",
       "          'location': '113.334763,23.141666'},\n",
       "         'arrival_stop': {'name': '公园前',\n",
       "          'id': '440100016961016',\n",
       "          'location': '113.265419,23.127947'},\n",
       "         'name': '6路(天河北公交总站--黄沙总站)',\n",
       "         'id': '440100016961',\n",
       "         'type': '普通公交线路',\n",
       "         'distance': '9991',\n",
       "         'duration': '2158',\n",
       "         'polyline': '113.334763,23.141666;113.334259,23.141689;113.333900,23.141703;113.333633,23.141710;113.333038,23.141735;113.332825,23.141735;113.332596,23.141735;113.332207,23.141716;113.330986,23.141640;113.330505,23.141619;113.330353,23.141615;113.329758,23.141588;113.329437,23.141562;113.329094,23.141541;113.329010,23.141525;113.328461,23.141506;113.328354,23.141502;113.328087,23.141493;113.327278,23.141449;113.325745,23.141367;113.325661,23.141367;113.325096,23.141346;113.324806,23.141342;113.324348,23.141315;113.323914,23.141293;113.323814,23.141289;113.323128,23.141249;113.323021,23.141245;113.322533,23.141216;113.322105,23.141197;113.322021,23.141190;113.321678,23.141180;113.321556,23.141176;113.321129,23.141155;113.320808,23.141138;113.320419,23.141111;113.320221,23.141098;113.319458,23.141056;113.318916,23.141043;113.318420,23.141029;113.317253,23.140978;113.316933,23.140961;113.316299,23.140928;113.315849,23.140915;113.315468,23.140907;113.315147,23.140993;113.315056,23.141029;113.315010,23.141056;113.314949,23.141138;113.314926,23.141230;113.314903,23.141407;113.314896,23.141506;113.314888,23.141611;113.314728,23.143055;113.314636,23.143293;113.314507,23.144936;113.314430,23.145525;113.314224,23.145525;113.314255,23.145273;113.314255,23.145187;113.314354,23.144119;113.314362,23.144119;113.314438,23.143337;113.314079,23.143429;113.313072,23.143702;113.312988,23.143715;113.312912,23.143728;113.312775,23.143747;113.312233,23.143755;113.311978,23.143761;113.311691,23.143711;113.311519,23.143717;113.311328,23.144062;113.311028,23.144531;113.310799,23.144896;113.310608,23.145235;113.310539,23.145405;113.310509,23.145504;113.310448,23.145712;113.310234,23.146328;113.310104,23.146694;113.310028,23.146723;113.309669,23.146645;113.308777,23.146448;113.307922,23.146250;113.307762,23.146238;113.307594,23.146254;113.307510,23.146271;113.307411,23.146307;113.306999,23.146502;113.306992,23.146502;113.306999,23.146502;113.306877,23.146553;113.306824,23.146597;113.306641,23.146793;113.306389,23.146749;113.306114,23.146658;113.305840,23.146566;113.305588,23.146471;113.305351,23.146366;113.305168,23.146284;113.304855,23.146147;113.304642,23.146025;113.304459,23.145910;113.304306,23.145779;113.304092,23.145552;113.303894,23.145290;113.303589,23.144823;113.303383,23.144571;113.303207,23.144480;113.302628,23.143911;113.302628,23.143908;113.302460,23.143747;113.302299,23.143589;113.302010,23.143297;113.301926,23.143120;113.301834,23.143042;113.301094,23.142323;113.300957,23.142221;113.300636,23.141953;113.300095,23.141476;113.300034,23.141432;113.298958,23.140570;113.298264,23.139931;113.297775,23.139526;113.297028,23.138849;113.296852,23.138758;113.296364,23.138311;113.295807,23.137787;113.295540,23.137531;113.295326,23.137318;113.295227,23.137205;113.295082,23.137032;113.295006,23.136845;113.293991,23.135559;113.293793,23.135303;113.293648,23.135195;113.293549,23.135187;113.293472,23.135164;113.293388,23.135113;113.293335,23.135044;113.293137,23.135059;113.293121,23.135059;113.292313,23.135195;113.291512,23.135338;113.291016,23.135418;113.290955,23.135429;113.290649,23.135483;113.289727,23.135660;113.289318,23.135742;113.288971,23.135801;113.288498,23.135925;113.288284,23.135981;113.287903,23.136089;113.287811,23.136051;113.287239,23.136244;113.286888,23.136349;113.286827,23.136431;113.286674,23.136484;113.285851,23.136770;113.284798,23.137117;113.284531,23.137205;113.283882,23.137413;113.283295,23.137630;113.283119,23.137695;113.282997,23.137743;113.282913,23.137774;113.282425,23.137978;113.281929,23.138182;113.281776,23.138247;113.281677,23.138283;113.281250,23.138464;113.281197,23.138485;113.280838,23.138641;113.279778,23.139067;113.279579,23.139124;113.279243,23.139250;113.279114,23.139280;113.278450,23.139400;113.278389,23.139408;113.278229,23.139431;113.277779,23.139471;113.277786,23.139471;113.277779,23.139471;113.277344,23.139509;113.277077,23.139530;113.276909,23.139544;113.276161,23.139595;113.275452,23.139658;113.275368,23.139658;113.275208,23.139654;113.275154,23.139635;113.275101,23.139608;113.274971,23.139500;113.274971,23.139301;113.274879,23.139158;113.274345,23.138615;113.273163,23.137474;113.273056,23.137386;113.272903,23.137253;113.272850,23.137205;113.272285,23.136675;113.272217,23.136616;113.272079,23.136463;113.271957,23.136297;113.271873,23.136097;113.271866,23.136047;113.271797,23.135572;113.271774,23.135118;113.271767,23.134272;113.271759,23.134041;113.271744,23.133615;113.271736,23.133459;113.271706,23.132946;113.271683,23.132364;113.271561,23.131203;113.271538,23.131002;113.271431,23.130537;113.271416,23.130251;113.271461,23.129753;113.271477,23.129627;113.271515,23.129475;113.271461,23.129313;113.271431,23.129276;113.271332,23.129202;113.271172,23.129198;113.271042,23.129185;113.270821,23.129175;113.270721,23.129162;113.270554,23.129148;113.270294,23.129131;113.270126,23.129131;113.269958,23.129135;113.269722,23.129141;113.269325,23.129154;113.269135,23.129158;113.269043,23.129158;113.268761,23.129162;113.268318,23.129148;113.268112,23.129141;113.267883,23.129135;113.267815,23.129175;113.267670,23.129181;113.267342,23.129175;113.266922,23.129185;113.266914,23.129185;113.266808,23.129185;113.266373,23.129116;113.266113,23.129110;113.265915,23.129107;113.265549,23.129097;113.265465,23.129002;113.265457,23.128693;113.265419,23.127947',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': [],\n",
       "         'end_time': [],\n",
       "         'via_num': '13',\n",
       "         'via_stops': [{'name': '天河北路',\n",
       "           'id': '440100016961003',\n",
       "           'location': '113.330505,23.141619'},\n",
       "          {'name': '时代广场',\n",
       "           'id': '440100016961004',\n",
       "           'location': '113.318916,23.141043'},\n",
       "          {'name': '广州体院',\n",
       "           'id': '440100016961005',\n",
       "           'location': '113.314354,23.144119'},\n",
       "          {'name': '水荫路',\n",
       "           'id': '440100016961006',\n",
       "           'location': '113.310509,23.145504'},\n",
       "          {'name': '十九路军陵园',\n",
       "           'id': '440100016961007',\n",
       "           'location': '113.306999,23.146502'},\n",
       "          {'name': '动物园',\n",
       "           'id': '440100016961027',\n",
       "           'location': '113.302628,23.143911'},\n",
       "          {'name': '黄花岗',\n",
       "           'id': '440100016961009',\n",
       "           'location': '113.295807,23.137787'},\n",
       "          {'name': '区庄立交西站',\n",
       "           'id': '440100016961028',\n",
       "           'location': '113.290955,23.135429'},\n",
       "          {'name': '白云宾馆',\n",
       "           'id': '440100016961032',\n",
       "           'location': '113.288284,23.135981'},\n",
       "          {'name': '广东电视台',\n",
       "           'id': '440100016961033',\n",
       "           'location': '113.283119,23.137695'},\n",
       "          {'name': '小北',\n",
       "           'id': '440100016961013',\n",
       "           'location': '113.277779,23.139471'},\n",
       "          {'name': '小北花圈',\n",
       "           'id': '440100016961014',\n",
       "           'location': '113.272285,23.136675'},\n",
       "          {'name': '越华路',\n",
       "           'id': '440100016961015',\n",
       "           'location': '113.266922,23.129185'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.265427,23.127956',\n",
       "       'destination': '113.264442,23.128971',\n",
       "       'distance': '224',\n",
       "       'duration': '192',\n",
       "       'steps': [{'instruction': '沿吉祥路步行80米左转',\n",
       "         'road': '吉祥路',\n",
       "         'distance': '80',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265427,23.127956;113.265434,23.128017;113.265503,23.128681',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿府前路步行57米右转',\n",
       "         'road': '府前路',\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265503,23.128681;113.264938,23.128719',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行35米左转',\n",
       "         'road': [],\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.128719;113.264938,23.129036',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.129036;113.264771,23.128981;113.264442,23.128971',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]},\n",
       "   {'cost': '4.0',\n",
       "    'duration': '3751',\n",
       "    'nightflag': '0',\n",
       "    'walking_distance': '2202',\n",
       "    'distance': '11960',\n",
       "    'missed': '1',\n",
       "    'segments': [{'taxi': [],\n",
       "      'walking': {'origin': '113.356827,23.157383',\n",
       "       'destination': '113.351822,23.152830',\n",
       "       'distance': '1137',\n",
       "       'duration': '974',\n",
       "       'steps': [{'instruction': '沿嵩山路步行129米向右前方行走',\n",
       "         'road': '嵩山路',\n",
       "         'distance': '129',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356827,23.157383;113.356949,23.156876;113.357071,23.156397;113.357132,23.156260',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行173米向右前方行走',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '173',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357132,23.156254;113.357101,23.156199;113.357101,23.156063;113.357086,23.155834;113.357086,23.155525;113.357086,23.154678',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行189米向左前方行走',\n",
       "         'road': [],\n",
       "         'distance': '189',\n",
       "         'duration': [],\n",
       "         'polyline': '113.357086,23.154675;113.356956,23.154552;113.356918,23.154501;113.356796,23.154119;113.356613,23.153784;113.356598,23.153715;113.356621,23.153402;113.356560,23.153099',\n",
       "         'action': '向左前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行79米右转',\n",
       "         'road': [],\n",
       "         'distance': '79',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356560,23.153095;113.356613,23.152874;113.356735,23.152575;113.356766,23.152412',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿五山路步行259米向右前方行走',\n",
       "         'road': '五山路',\n",
       "         'distance': '259',\n",
       "         'duration': [],\n",
       "         'polyline': '113.356766,23.152409;113.354881,23.152218;113.354446,23.152170;113.354256,23.152105',\n",
       "         'action': '向右前方行走',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿岳洲路步行214米右转',\n",
       "         'road': '岳洲路',\n",
       "         'distance': '214',\n",
       "         'duration': [],\n",
       "         'polyline': '113.354256,23.152102;113.353722,23.152126;113.353592,23.152153;113.352905,23.152248;113.352440,23.152275;113.352165,23.152275',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行94米到达五山',\n",
       "         'road': [],\n",
       "         'distance': '94',\n",
       "         'duration': [],\n",
       "         'polyline': '113.352165,23.152269;113.352165,23.152456;113.352135,23.152578;113.351852,23.152561;113.351822,23.152830',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达五山'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '五山',\n",
       "          'id': '440100023034003',\n",
       "          'location': '113.351812,23.152833'},\n",
       "         'arrival_stop': {'name': '石牌桥',\n",
       "          'id': '440100023034006',\n",
       "          'location': '113.332124,23.133135'},\n",
       "         'name': '地铁3号线(天河客运站--番禺广场)',\n",
       "         'id': '440100023034',\n",
       "         'type': '地铁线路',\n",
       "         'distance': '3582',\n",
       "         'duration': '340',\n",
       "         'polyline': '113.351812,23.152833;113.351865,23.152247;113.351840,23.152073;113.351678,23.151891;113.351390,23.151737;113.350826,23.151509;113.350175,23.151139;113.349695,23.150799;113.349617,23.150721;113.349295,23.150503;113.349173,23.150424;113.348877,23.150233;113.348773,23.150157;113.348625,23.150033;113.348451,23.149876;113.348347,23.149768;113.348181,23.149585;113.348077,23.149472;113.347999,23.149385;113.347859,23.149217;113.347755,23.149089;113.347651,23.148922;113.347433,23.148548;113.347346,23.148400;113.347294,23.148309;113.347251,23.148231;113.346912,23.147572;113.346807,23.147328;113.346537,23.146786;113.346381,23.146246;113.346221,23.145618;113.346073,23.144880;113.346020,23.144571;113.345994,23.144282;113.345986,23.143819;113.345999,23.143396;113.346013,23.142584;113.346041,23.142180;113.346067,23.141833;113.346052,23.141570;113.345975,23.141240;113.345825,23.140959;113.345330,23.140290;113.344795,23.139549;113.343632,23.138139;113.343536,23.138033;113.343431,23.137879;113.343275,23.137529;113.343214,23.137390;113.343057,23.137038;113.342936,23.136818;113.342770,23.136577;113.342683,23.136447;113.342605,23.136342;113.342562,23.136297;113.342509,23.136244;113.342266,23.135977;113.342188,23.135896;113.342127,23.135849;113.341935,23.135740;113.341683,23.135618;113.341535,23.135554;113.341474,23.135530;113.341405,23.135513;113.341335,23.135493;113.341179,23.135456;113.340979,23.135401;113.340778,23.135347;113.340639,23.135303;113.340327,23.135177;113.339601,23.134880;113.338709,23.134517;113.338282,23.134328;113.338056,23.134226;113.337864,23.134149;113.337673,23.134069;113.337473,23.134001;113.337212,23.133924;113.336968,23.133861;113.336742,23.133806;113.336464,23.133743;113.335455,23.133493;113.334924,23.133353;113.334733,23.133305;113.334585,23.133277;113.334305,23.133216;113.333834,23.133138;113.333091,23.133116;113.332124,23.133135',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0610',\n",
       "         'end_time': '2330',\n",
       "         'via_num': '2',\n",
       "         'via_stops': [{'name': '华师',\n",
       "           'id': '440100023034004',\n",
       "           'location': '113.345330,23.140290'},\n",
       "          {'name': '岗顶',\n",
       "           'id': '440100023034005',\n",
       "           'location': '113.339601,23.134880'}]}]},\n",
       "      'entrance': {'name': 'B1口', 'location': '113.352150,23.152456'},\n",
       "      'exit': {'name': 'D口', 'location': '113.330833,23.133738'},\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.332123,23.133129',\n",
       "       'destination': '113.330727,23.133459',\n",
       "       'distance': '235',\n",
       "       'duration': '201',\n",
       "       'steps': [{'instruction': '步行226米右转',\n",
       "         'road': [],\n",
       "         'distance': '226',\n",
       "         'duration': [],\n",
       "         'polyline': '113.332123,23.133129;113.331512,23.133142;113.331520,23.133724;113.330841,23.133734;113.330818,23.133465',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿天河路步行9米到达石牌桥',\n",
       "         'road': '天河路',\n",
       "         'distance': '9',\n",
       "         'duration': [],\n",
       "         'polyline': '113.330818,23.133455;113.330727,23.133459',\n",
       "         'action': [],\n",
       "         'assistant_action': '到达石牌桥'}]},\n",
       "      'bus': {'buslines': [{'departure_stop': {'name': '石牌桥',\n",
       "          'id': '440100015252043',\n",
       "          'location': '113.330707,23.133464'},\n",
       "         'arrival_stop': {'name': '东风中路',\n",
       "          'id': '440100015252021',\n",
       "          'location': '113.268715,23.131293'},\n",
       "         'name': 'B3路(东圃客运站总站--罗冲围总站)',\n",
       "         'id': '440100015252',\n",
       "         'type': '快速公交系统',\n",
       "         'distance': '6176',\n",
       "         'duration': '1524',\n",
       "         'polyline': '113.330707,23.133464;113.330703,23.133464;113.329727,23.133498;113.329470,23.133520;113.328446,23.133559;113.328216,23.133576;113.326606,23.133655;113.325920,23.133685;113.324436,23.133767;113.323155,23.133819;113.322296,23.133828;113.322300,23.133828;113.322304,23.133829;113.321930,23.133833;113.321304,23.133841;113.321205,23.133799;113.320152,23.133844;113.319374,23.133862;113.319122,23.133867;113.318443,23.133888;113.315758,23.134016;113.315460,23.134016;113.315201,23.134035;113.313866,23.134111;113.312988,23.134197;113.312805,23.134209;113.312141,23.134279;113.311684,23.134314;113.309250,23.134504;113.309219,23.134617;113.308190,23.134680;113.307686,23.134701;113.307632,23.134701;113.307541,23.134705;113.307343,23.134708;113.306824,23.134708;113.306038,23.134695;113.304985,23.134657;113.303886,23.134653;113.303490,23.134644;113.302299,23.134617;113.300636,23.134626;113.299690,23.134636;113.298828,23.134617;113.298553,23.134613;113.298401,23.134613;113.297386,23.134592;113.296715,23.134583;113.296356,23.134609;113.295769,23.134695;113.294746,23.134867;113.294014,23.134983;113.294006,23.135023;113.293922,23.135155;113.293823,23.135235;113.293739,23.135269;113.293617,23.135296;113.293549,23.135292;113.293358,23.135231;113.293205,23.135138;113.293137,23.134983;113.293114,23.134813;113.293121,23.134695;113.293137,23.134636;113.293182,23.134548;113.292145,23.133207;113.291626,23.132542;113.291573,23.132404;113.291443,23.132318;113.291321,23.132271;113.291023,23.132166;113.291016,23.132162;113.290558,23.132013;113.290337,23.131958;113.289742,23.131884;113.289467,23.131849;113.289291,23.131823;113.289185,23.131813;113.288612,23.131706;113.288155,23.131571;113.287575,23.131346;113.287331,23.131243;113.286682,23.130978;113.286362,23.130875;113.286255,23.130859;113.286018,23.130833;113.285530,23.130865;113.285301,23.130947;113.285164,23.130993;113.284874,23.131098;113.284470,23.131193;113.284470,23.131194;113.284293,23.131233;113.284093,23.131254;113.283177,23.131254;113.281832,23.131254;113.281332,23.131263;113.281155,23.131254;113.279965,23.131254;113.279961,23.131254;113.279475,23.131254;113.279340,23.131254;113.279175,23.131150;113.278607,23.131155;113.278103,23.131137;113.276832,23.131107;113.276254,23.131107;113.275786,23.131107;113.274596,23.131068;113.274453,23.131063;113.273976,23.131050;113.273411,23.131042;113.273268,23.131037;113.273116,23.131037;113.272374,23.131042;113.271814,23.131081;113.271207,23.131115;113.270447,23.131163;113.269727,23.131220;113.269084,23.131267;113.269041,23.131272;113.268715,23.131293',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0550',\n",
       "         'end_time': '2230',\n",
       "         'via_num': '6',\n",
       "         'via_stops': [{'name': '体育中心',\n",
       "           'id': '440100015252044',\n",
       "           'location': '113.322296,23.133828'},\n",
       "          {'name': '天河立交',\n",
       "           'id': '440100015252016',\n",
       "           'location': '113.308190,23.134680'},\n",
       "          {'name': '广东工大',\n",
       "           'id': '440100015252017',\n",
       "           'location': '113.298553,23.134613'},\n",
       "          {'name': '先烈南路',\n",
       "           'id': '440100015252018',\n",
       "           'location': '113.289467,23.131849'},\n",
       "          {'name': '东风东路(陵园西路口)',\n",
       "           'id': '440100015252019',\n",
       "           'location': '113.284470,23.131193'},\n",
       "          {'name': '越秀桥',\n",
       "           'id': '440100015252045',\n",
       "           'location': '113.279965,23.131254'}]},\n",
       "        {'departure_stop': {'name': '石牌桥',\n",
       "          'id': '440100017354055',\n",
       "          'location': '113.330621,23.133464'},\n",
       "         'arrival_stop': {'name': '东风中路',\n",
       "          'id': '440100017354062',\n",
       "          'location': '113.268715,23.131293'},\n",
       "         'name': 'B3C路(东圃客运站总站--和平新村)',\n",
       "         'id': '440100017354',\n",
       "         'type': '快速公交系统',\n",
       "         'distance': '6196',\n",
       "         'duration': '1526',\n",
       "         'polyline': '113.330621,23.133464;113.329727,23.133498;113.329470,23.133520;113.328446,23.133559;113.328216,23.133576;113.326606,23.133655;113.325920,23.133685;113.324436,23.133767;113.323155,23.133819;113.322765,23.133824;113.322773,23.133824;113.322777,23.133825;113.322773,23.133824;113.321936,23.133832;113.321306,23.133841;113.321211,23.133798;113.320152,23.133845;113.319375,23.133863;113.319123,23.133867;113.318446,23.133889;113.315760,23.134015;113.315460,23.134015;113.315200,23.134036;113.313867,23.134110;113.312986,23.134197;113.312808,23.134210;113.312140,23.134280;113.311684,23.134314;113.309253,23.134505;113.309219,23.134618;113.308455,23.134661;113.308264,23.134674;113.308003,23.134687;113.307687,23.134701;113.307635,23.134701;113.307535,23.134705;113.307339,23.134709;113.306827,23.134709;113.306037,23.134696;113.304987,23.134657;113.303885,23.134653;113.303490,23.134644;113.302300,23.134618;113.300642,23.134627;113.299692,23.134635;113.299136,23.134627;113.298828,23.134618;113.298520,23.134614;113.298523,23.134613;113.298401,23.134613;113.297386,23.134592;113.296715,23.134583;113.296356,23.134609;113.295769,23.134695;113.294746,23.134867;113.294014,23.134983;113.294006,23.135023;113.293922,23.135155;113.293823,23.135235;113.293739,23.135269;113.293617,23.135296;113.293549,23.135292;113.293358,23.135231;113.293205,23.135138;113.293137,23.134983;113.293114,23.134813;113.293121,23.134695;113.293137,23.134636;113.293182,23.134548;113.292145,23.133207;113.291626,23.132542;113.291573,23.132404;113.291443,23.132318;113.291321,23.132271;113.291023,23.132166;113.291016,23.132162;113.290558,23.132013;113.290337,23.131958;113.289742,23.131884;113.289467,23.131849;113.289291,23.131823;113.289185,23.131813;113.288612,23.131706;113.288155,23.131571;113.287575,23.131346;113.287331,23.131243;113.286682,23.130978;113.286362,23.130875;113.286255,23.130859;113.286018,23.130833;113.285530,23.130865;113.285301,23.130947;113.285164,23.130993;113.284874,23.131098;113.284470,23.131193;113.284470,23.131194;113.284293,23.131233;113.284093,23.131254;113.283177,23.131254;113.281832,23.131254;113.281332,23.131263;113.281155,23.131254;113.280569,23.131254;113.279475,23.131254;113.279340,23.131254;113.279175,23.131150;113.278607,23.131155;113.278103,23.131137;113.276832,23.131107;113.276254,23.131107;113.275864,23.131111;113.274536,23.131063;113.273976,23.131050;113.273411,23.131042;113.273268,23.131037;113.273116,23.131037;113.272374,23.131042;113.271814,23.131081;113.271207,23.131115;113.270447,23.131163;113.269727,23.131220;113.269084,23.131267;113.269041,23.131272;113.268715,23.131293',\n",
       "         'bustimetag': '2',\n",
       "         'start_time': '0630',\n",
       "         'end_time': '0830',\n",
       "         'via_num': '6',\n",
       "         'via_stops': [{'name': '体育中心',\n",
       "           'id': '440100017354056',\n",
       "           'location': '113.322765,23.133824'},\n",
       "          {'name': '天河立交',\n",
       "           'id': '440100017354057',\n",
       "           'location': '113.308264,23.134674'},\n",
       "          {'name': '广东工大',\n",
       "           'id': '440100017354058',\n",
       "           'location': '113.298520,23.134614'},\n",
       "          {'name': '先烈南路',\n",
       "           'id': '440100017354059',\n",
       "           'location': '113.289467,23.131849'},\n",
       "          {'name': '东风东路(陵园西路口)',\n",
       "           'id': '440100017354060',\n",
       "           'location': '113.284470,23.131193'},\n",
       "          {'name': '越秀桥',\n",
       "           'id': '440100017354061',\n",
       "           'location': '113.280569,23.131254'}]}]},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}},\n",
       "     {'taxi': [],\n",
       "      'walking': {'origin': '113.268707,23.131294',\n",
       "       'destination': '113.264442,23.128971',\n",
       "       'distance': '830',\n",
       "       'duration': '711',\n",
       "       'steps': [{'instruction': '沿东风中路步行19米左转',\n",
       "         'road': '东风中路',\n",
       "         'distance': '19',\n",
       "         'duration': [],\n",
       "         'polyline': '113.268707,23.131294;113.268906,23.131281',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行114米左转',\n",
       "         'road': [],\n",
       "         'distance': '114',\n",
       "         'duration': [],\n",
       "         'polyline': '113.268906,23.131275;113.268913,23.131384;113.268623,23.131401;113.268600,23.131094;113.268311,23.131107;113.268318,23.131203',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿东风中路步行257米左转',\n",
       "         'road': '东风中路',\n",
       "         'distance': '257',\n",
       "         'duration': [],\n",
       "         'polyline': '113.268318,23.131203;113.268188,23.131210;113.267586,23.131247;113.267426,23.131254;113.267159,23.131271;113.266495,23.131315;113.265785,23.131363',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿吉祥路步行296米右转',\n",
       "         'road': '吉祥路',\n",
       "         'distance': '296',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265778,23.131363;113.265724,23.130821;113.265640,23.130178;113.265617,23.129934;113.265549,23.129101;113.265526,23.129005;113.265503,23.128685',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '沿府前路步行57米右转',\n",
       "         'road': '府前路',\n",
       "         'distance': '57',\n",
       "         'duration': [],\n",
       "         'polyline': '113.265503,23.128681;113.264938,23.128719',\n",
       "         'action': '右转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行35米左转',\n",
       "         'road': [],\n",
       "         'distance': '35',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.128719;113.264938,23.129036',\n",
       "         'action': '左转',\n",
       "         'assistant_action': []},\n",
       "        {'instruction': '步行52米',\n",
       "         'road': [],\n",
       "         'distance': '52',\n",
       "         'duration': [],\n",
       "         'polyline': '113.264938,23.129036;113.264771,23.128981;113.264442,23.128971',\n",
       "         'action': [],\n",
       "         'assistant_action': []}]},\n",
       "      'bus': {'buslines': []},\n",
       "      'entrance': [],\n",
       "      'exit': [],\n",
       "      'railway': {'via_stops': [], 'alters': [], 'spaces': []}}]}]}}"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a=bus(zhuang_key,origin,destination,city)\n",
    "a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>cost</th>\n",
       "      <th>duration</th>\n",
       "      <th>nightflag</th>\n",
       "      <th>walking_distance</th>\n",
       "      <th>distance</th>\n",
       "      <th>missed</th>\n",
       "      <th>segments</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>4.0</td>\n",
       "      <td>2651</td>\n",
       "      <td>0</td>\n",
       "      <td>1813</td>\n",
       "      <td>12857</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.35682...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>4.0</td>\n",
       "      <td>3834</td>\n",
       "      <td>0</td>\n",
       "      <td>1822</td>\n",
       "      <td>14759</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.35682...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>4.0</td>\n",
       "      <td>4135</td>\n",
       "      <td>0</td>\n",
       "      <td>1189</td>\n",
       "      <td>13790</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.35682...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4.0</td>\n",
       "      <td>4123</td>\n",
       "      <td>0</td>\n",
       "      <td>1198</td>\n",
       "      <td>13947</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.35682...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>4.0</td>\n",
       "      <td>3751</td>\n",
       "      <td>0</td>\n",
       "      <td>2202</td>\n",
       "      <td>11960</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.35682...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  cost duration nightflag walking_distance distance missed  \\\n",
       "0  4.0     2651         0             1813    12857      1   \n",
       "1  4.0     3834         0             1822    14759      1   \n",
       "2  4.0     4135         0             1189    13790      1   \n",
       "3  4.0     4123         0             1198    13947      1   \n",
       "4  4.0     3751         0             2202    11960      1   \n",
       "\n",
       "                                            segments  \n",
       "0  [{'taxi': [], 'walking': {'origin': '113.35682...  \n",
       "1  [{'taxi': [], 'walking': {'origin': '113.35682...  \n",
       "2  [{'taxi': [], 'walking': {'origin': '113.35682...  \n",
       "3  [{'taxi': [], 'walking': {'origin': '113.35682...  \n",
       "4  [{'taxi': [], 'walking': {'origin': '113.35682...  "
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(a[\"route\"][\"transits\"])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>cost</th>\n",
       "      <th>duration</th>\n",
       "      <th>nightflag</th>\n",
       "      <th>walking_distance</th>\n",
       "      <th>distance</th>\n",
       "      <th>missed</th>\n",
       "      <th>segments</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>4.0</td>\n",
       "      <td>2651</td>\n",
       "      <td>0</td>\n",
       "      <td>1813</td>\n",
       "      <td>12857</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '113.35682...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  cost duration nightflag walking_distance distance missed  \\\n",
       "0  4.0     2651         0             1813    12857      1   \n",
       "\n",
       "                                            segments  \n",
       "0  [{'taxi': [], 'walking': {'origin': '113.35682...  "
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "方案一 = pd.json_normalize(a[\"route\"][\"transits\"][0])\n",
    "方案一"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0    4.0\n",
       "1    4.0\n",
       "2    4.0\n",
       "3    4.0\n",
       "4    4.0\n",
       "Name: cost, dtype: object"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(a[\"route\"][\"transits\"])[\"cost\"]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 六、行政区域查询\n",
    ">* 定义：行政区域查询是一类简单的HTTP接口，根据用户输入的搜索条件可以帮助用户快速的查找特定的行政区域信息。  \n",
    "\n",
    ">* 应用场景：人口普查等政务相关的全国性行政工作 / 制作疫情地图 /全国各地高校行政分布查询\n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key\n",
    ">* 可选参数：keywords，page等"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "xz_url=\"https://restapi.amap.com/v3/config/district?parameters\"\n",
    "keywords=\"山东\"\n",
    "subdistrict=\"2\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "def xingzheng(zhuang_key,keywords,subdistrict):\n",
    "    params = {\n",
    "        \"key\":zhuang_key,\n",
    "        \"keywords\":keywords,\n",
    "        \"output\":\"json\",\n",
    "        \"subdistrict\":subdistrict,\n",
    "    }\n",
    "    result = requests.get(xz_url,params=params)\n",
    "    return result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "b = xingzheng(zhuang_key,keywords,subdistrict)\n",
    "b"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': [],\n",
       "   'adcode': '370000',\n",
       "   'name': '山东省',\n",
       "   'center': '117.000923,36.675807',\n",
       "   'level': 'province',\n",
       "   'districts': [{'citycode': '0635',\n",
       "     'adcode': '371500',\n",
       "     'name': '聊城市',\n",
       "     'center': '115.980367,36.456013',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0635',\n",
       "       'adcode': '371525',\n",
       "       'name': '冠县',\n",
       "       'center': '115.444808,36.483753',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0635',\n",
       "       'adcode': '371522',\n",
       "       'name': '莘县',\n",
       "       'center': '115.667291,36.237597',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0635',\n",
       "       'adcode': '371503',\n",
       "       'name': '茌平区',\n",
       "       'center': '116.25335,36.591934',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0635',\n",
       "       'adcode': '371502',\n",
       "       'name': '东昌府区',\n",
       "       'center': '115.980023,36.45606',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0635',\n",
       "       'adcode': '371581',\n",
       "       'name': '临清市',\n",
       "       'center': '115.713462,36.842598',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0635',\n",
       "       'adcode': '371524',\n",
       "       'name': '东阿县',\n",
       "       'center': '116.248855,36.336004',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0635',\n",
       "       'adcode': '371521',\n",
       "       'name': '阳谷县',\n",
       "       'center': '115.784287,36.113708',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0635',\n",
       "       'adcode': '371526',\n",
       "       'name': '高唐县',\n",
       "       'center': '116.229662,36.859755',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0533',\n",
       "     'adcode': '370300',\n",
       "     'name': '淄博市',\n",
       "     'center': '118.047648,36.814939',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0533',\n",
       "       'adcode': '370304',\n",
       "       'name': '博山区',\n",
       "       'center': '117.85823,36.497567',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0533',\n",
       "       'adcode': '370305',\n",
       "       'name': '临淄区',\n",
       "       'center': '118.306018,36.816657',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0533',\n",
       "       'adcode': '370322',\n",
       "       'name': '高青县',\n",
       "       'center': '117.829839,37.169581',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0533',\n",
       "       'adcode': '370321',\n",
       "       'name': '桓台县',\n",
       "       'center': '118.101556,36.959773',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0533',\n",
       "       'adcode': '370303',\n",
       "       'name': '张店区',\n",
       "       'center': '118.053521,36.807049',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0533',\n",
       "       'adcode': '370323',\n",
       "       'name': '沂源县',\n",
       "       'center': '118.166161,36.186282',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0533',\n",
       "       'adcode': '370302',\n",
       "       'name': '淄川区',\n",
       "       'center': '117.967696,36.647272',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0533',\n",
       "       'adcode': '370306',\n",
       "       'name': '周村区',\n",
       "       'center': '117.851036,36.803699',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0539',\n",
       "     'adcode': '371300',\n",
       "     'name': '临沂市',\n",
       "     'center': '118.326443,35.065282',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0539',\n",
       "       'adcode': '371323',\n",
       "       'name': '沂水县',\n",
       "       'center': '118.634543,35.787029',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371328',\n",
       "       'name': '蒙阴县',\n",
       "       'center': '117.943271,35.712435',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371326',\n",
       "       'name': '平邑县',\n",
       "       'center': '117.631884,35.511519',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371322',\n",
       "       'name': '郯城县',\n",
       "       'center': '118.342963,34.614741',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371327',\n",
       "       'name': '莒南县',\n",
       "       'center': '118.838322,35.175911',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371321',\n",
       "       'name': '沂南县',\n",
       "       'center': '118.455395,35.547002',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371302',\n",
       "       'name': '兰山区',\n",
       "       'center': '118.327667,35.061631',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371311',\n",
       "       'name': '罗庄区',\n",
       "       'center': '118.284795,34.997204',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371329',\n",
       "       'name': '临沭县',\n",
       "       'center': '118.648379,34.917062',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371312',\n",
       "       'name': '河东区',\n",
       "       'center': '118.398296,35.085004',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371325',\n",
       "       'name': '费县',\n",
       "       'center': '117.968869,35.269174',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0539',\n",
       "       'adcode': '371324',\n",
       "       'name': '兰陵县',\n",
       "       'center': '118.049968,34.855573',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0532',\n",
       "     'adcode': '370200',\n",
       "     'name': '青岛市',\n",
       "     'center': '120.355173,36.082982',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0532',\n",
       "       'adcode': '370285',\n",
       "       'name': '莱西市',\n",
       "       'center': '120.526226,36.86509',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370283',\n",
       "       'name': '平度市',\n",
       "       'center': '119.959012,36.788828',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370214',\n",
       "       'name': '城阳区',\n",
       "       'center': '120.389135,36.306833',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370215',\n",
       "       'name': '即墨区',\n",
       "       'center': '120.447352,36.390847',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370213',\n",
       "       'name': '李沧区',\n",
       "       'center': '120.421236,36.160023',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370212',\n",
       "       'name': '崂山区',\n",
       "       'center': '120.467393,36.102569',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370211',\n",
       "       'name': '黄岛区',\n",
       "       'center': '119.995518,35.875138',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370203',\n",
       "       'name': '市北区',\n",
       "       'center': '120.355026,36.083819',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370281',\n",
       "       'name': '胶州市',\n",
       "       'center': '120.006202,36.285878',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0532',\n",
       "       'adcode': '370202',\n",
       "       'name': '市南区',\n",
       "       'center': '120.395966,36.070892',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0631',\n",
       "     'adcode': '371000',\n",
       "     'name': '威海市',\n",
       "     'center': '122.116394,37.509691',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0631',\n",
       "       'adcode': '371002',\n",
       "       'name': '环翠区',\n",
       "       'center': '122.116189,37.510754',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0631',\n",
       "       'adcode': '371003',\n",
       "       'name': '文登区',\n",
       "       'center': '122.057139,37.196211',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0631',\n",
       "       'adcode': '371083',\n",
       "       'name': '乳山市',\n",
       "       'center': '121.536346,36.919622',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0631',\n",
       "       'adcode': '371082',\n",
       "       'name': '荣成市',\n",
       "       'center': '122.422896,37.160134',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0535',\n",
       "     'adcode': '370600',\n",
       "     'name': '烟台市',\n",
       "     'center': '121.391382,37.539297',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0535',\n",
       "       'adcode': '370602',\n",
       "       'name': '芝罘区',\n",
       "       'center': '121.385877,37.540925',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370614',\n",
       "       'name': '蓬莱区',\n",
       "       'center': '120.759074,37.811045',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370683',\n",
       "       'name': '莱州市',\n",
       "       'center': '119.942135,37.182725',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370687',\n",
       "       'name': '海阳市',\n",
       "       'center': '121.168392,36.780657',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370681',\n",
       "       'name': '龙口市',\n",
       "       'center': '120.528328,37.648446',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370682',\n",
       "       'name': '莱阳市',\n",
       "       'center': '120.711151,36.977037',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370685',\n",
       "       'name': '招远市',\n",
       "       'center': '120.403142,37.364919',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370611',\n",
       "       'name': '福山区',\n",
       "       'center': '121.264741,37.496875',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370613',\n",
       "       'name': '莱山区',\n",
       "       'center': '121.448866,37.473549',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370686',\n",
       "       'name': '栖霞市',\n",
       "       'center': '120.834097,37.305854',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0535',\n",
       "       'adcode': '370612',\n",
       "       'name': '牟平区',\n",
       "       'center': '121.60151,37.388356',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0536',\n",
       "     'adcode': '370700',\n",
       "     'name': '潍坊市',\n",
       "     'center': '119.107078,36.70925',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0536',\n",
       "       'adcode': '370705',\n",
       "       'name': '奎文区',\n",
       "       'center': '119.137357,36.709494',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370724',\n",
       "       'name': '临朐县',\n",
       "       'center': '118.539876,36.516371',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370702',\n",
       "       'name': '潍城区',\n",
       "       'center': '119.103784,36.710062',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370784',\n",
       "       'name': '安丘市',\n",
       "       'center': '119.206886,36.427417',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370782',\n",
       "       'name': '诸城市',\n",
       "       'center': '119.403182,35.997093',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370783',\n",
       "       'name': '寿光市',\n",
       "       'center': '118.736451,36.874411',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370703',\n",
       "       'name': '寒亭区',\n",
       "       'center': '119.207866,36.772103',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370786',\n",
       "       'name': '昌邑市',\n",
       "       'center': '119.394502,36.854937',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370725',\n",
       "       'name': '昌乐县',\n",
       "       'center': '118.839995,36.703253',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370781',\n",
       "       'name': '青州市',\n",
       "       'center': '118.484693,36.697855',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370785',\n",
       "       'name': '高密市',\n",
       "       'center': '119.757033,36.37754',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0536',\n",
       "       'adcode': '370704',\n",
       "       'name': '坊子区',\n",
       "       'center': '119.166326,36.654616',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0546',\n",
       "     'adcode': '370500',\n",
       "     'name': '东营市',\n",
       "     'center': '118.66471,37.434564',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0546',\n",
       "       'adcode': '370522',\n",
       "       'name': '利津县',\n",
       "       'center': '118.248854,37.493365',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0546',\n",
       "       'adcode': '370523',\n",
       "       'name': '广饶县',\n",
       "       'center': '118.407522,37.05161',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0546',\n",
       "       'adcode': '370502',\n",
       "       'name': '东营区',\n",
       "       'center': '118.507543,37.461567',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0546',\n",
       "       'adcode': '370503',\n",
       "       'name': '河口区',\n",
       "       'center': '118.529613,37.886015',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0546',\n",
       "       'adcode': '370505',\n",
       "       'name': '垦利区',\n",
       "       'center': '118.551314,37.588679',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0543',\n",
       "     'adcode': '371600',\n",
       "     'name': '滨州市',\n",
       "     'center': '118.016974,37.383542',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0543',\n",
       "       'adcode': '371602',\n",
       "       'name': '滨城区',\n",
       "       'center': '118.020149,37.384842',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0543',\n",
       "       'adcode': '371603',\n",
       "       'name': '沾化区',\n",
       "       'center': '118.129902,37.698456',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0543',\n",
       "       'adcode': '371681',\n",
       "       'name': '邹平市',\n",
       "       'center': '117.736807,36.87803',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0543',\n",
       "       'adcode': '371625',\n",
       "       'name': '博兴县',\n",
       "       'center': '118.123096,37.147002',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0543',\n",
       "       'adcode': '371623',\n",
       "       'name': '无棣县',\n",
       "       'center': '117.616325,37.740848',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0543',\n",
       "       'adcode': '371622',\n",
       "       'name': '阳信县',\n",
       "       'center': '117.581326,37.640492',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0543',\n",
       "       'adcode': '371621',\n",
       "       'name': '惠民县',\n",
       "       'center': '117.508941,37.483876',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0633',\n",
       "     'adcode': '371100',\n",
       "     'name': '日照市',\n",
       "     'center': '119.461208,35.428588',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0633',\n",
       "       'adcode': '371121',\n",
       "       'name': '五莲县',\n",
       "       'center': '119.206745,35.751936',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0633',\n",
       "       'adcode': '371102',\n",
       "       'name': '东港区',\n",
       "       'center': '119.457703,35.426152',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0633',\n",
       "       'adcode': '371122',\n",
       "       'name': '莒县',\n",
       "       'center': '118.832859,35.588115',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0633',\n",
       "       'adcode': '371103',\n",
       "       'name': '岚山区',\n",
       "       'center': '119.315844,35.119794',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0632',\n",
       "     'adcode': '370400',\n",
       "     'name': '枣庄市',\n",
       "     'center': '117.557964,34.856424',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0632',\n",
       "       'adcode': '370404',\n",
       "       'name': '峄城区',\n",
       "       'center': '117.586316,34.767713',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0632',\n",
       "       'adcode': '370406',\n",
       "       'name': '山亭区',\n",
       "       'center': '117.458968,35.096077',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0632',\n",
       "       'adcode': '370403',\n",
       "       'name': '薛城区',\n",
       "       'center': '117.265293,34.79789',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0632',\n",
       "       'adcode': '370402',\n",
       "       'name': '市中区',\n",
       "       'center': '117.557281,34.856651',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0632',\n",
       "       'adcode': '370481',\n",
       "       'name': '滕州市',\n",
       "       'center': '117.162098,35.088498',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0632',\n",
       "       'adcode': '370405',\n",
       "       'name': '台儿庄区',\n",
       "       'center': '117.734747,34.564815',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0534',\n",
       "     'adcode': '371400',\n",
       "     'name': '德州市',\n",
       "     'center': '116.307428,37.453968',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0534',\n",
       "       'adcode': '371422',\n",
       "       'name': '宁津县',\n",
       "       'center': '116.79372,37.649619',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371481',\n",
       "       'name': '乐陵市',\n",
       "       'center': '117.216657,37.729115',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371402',\n",
       "       'name': '德城区',\n",
       "       'center': '116.307076,37.453923',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371428',\n",
       "       'name': '武城县',\n",
       "       'center': '116.078627,37.209527',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371423',\n",
       "       'name': '庆云县',\n",
       "       'center': '117.390507,37.777724',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371427',\n",
       "       'name': '夏津县',\n",
       "       'center': '116.003816,36.950501',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371425',\n",
       "       'name': '齐河县',\n",
       "       'center': '116.758394,36.795497',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371482',\n",
       "       'name': '禹城市',\n",
       "       'center': '116.642554,36.934485',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371424',\n",
       "       'name': '临邑县',\n",
       "       'center': '116.867028,37.192044',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371403',\n",
       "       'name': '陵城区',\n",
       "       'center': '116.574929,37.332848',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0534',\n",
       "       'adcode': '371426',\n",
       "       'name': '平原县',\n",
       "       'center': '116.433904,37.164465',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0531',\n",
       "     'adcode': '370100',\n",
       "     'name': '济南市',\n",
       "     'center': '117.000923,36.675807',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0531',\n",
       "       'adcode': '370117',\n",
       "       'name': '钢城区',\n",
       "       'center': '117.82033,36.058038',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370116',\n",
       "       'name': '莱芜区',\n",
       "       'center': '117.675808,36.214395',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370114',\n",
       "       'name': '章丘区',\n",
       "       'center': '117.54069,36.71209',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370105',\n",
       "       'name': '天桥区',\n",
       "       'center': '116.996086,36.693374',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370115',\n",
       "       'name': '济阳区',\n",
       "       'center': '117.176035,36.976771',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370112',\n",
       "       'name': '历城区',\n",
       "       'center': '117.063744,36.681744',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370102',\n",
       "       'name': '历下区',\n",
       "       'center': '117.03862,36.664169',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370124',\n",
       "       'name': '平阴县',\n",
       "       'center': '116.455054,36.286923',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370126',\n",
       "       'name': '商河县',\n",
       "       'center': '117.156369,37.310544',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370103',\n",
       "       'name': '市中区',\n",
       "       'center': '116.99898,36.657354',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370104',\n",
       "       'name': '槐荫区',\n",
       "       'center': '116.947921,36.668205',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0531',\n",
       "       'adcode': '370113',\n",
       "       'name': '长清区',\n",
       "       'center': '116.74588,36.561049',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0530',\n",
       "     'adcode': '371700',\n",
       "     'name': '菏泽市',\n",
       "     'center': '115.469381,35.246531',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0530',\n",
       "       'adcode': '371726',\n",
       "       'name': '鄄城县',\n",
       "       'center': '115.51434,35.560257',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371702',\n",
       "       'name': '牡丹区',\n",
       "       'center': '115.470946,35.24311',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371728',\n",
       "       'name': '东明县',\n",
       "       'center': '115.098412,35.289637',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371703',\n",
       "       'name': '定陶区',\n",
       "       'center': '115.569601,35.072701',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371725',\n",
       "       'name': '郓城县',\n",
       "       'center': '115.93885,35.594773',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371724',\n",
       "       'name': '巨野县',\n",
       "       'center': '116.089341,35.390999',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371723',\n",
       "       'name': '成武县',\n",
       "       'center': '115.897349,34.947366',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371721',\n",
       "       'name': '曹县',\n",
       "       'center': '115.549482,34.823253',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0530',\n",
       "       'adcode': '371722',\n",
       "       'name': '单县',\n",
       "       'center': '116.08262,34.790851',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0538',\n",
       "     'adcode': '370900',\n",
       "     'name': '泰安市',\n",
       "     'center': '117.129063,36.194968',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0538',\n",
       "       'adcode': '370982',\n",
       "       'name': '新泰市',\n",
       "       'center': '117.766092,35.910387',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0538',\n",
       "       'adcode': '370923',\n",
       "       'name': '东平县',\n",
       "       'center': '116.461052,35.930467',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0538',\n",
       "       'adcode': '370902',\n",
       "       'name': '泰山区',\n",
       "       'center': '117.129984,36.189313',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0538',\n",
       "       'adcode': '370911',\n",
       "       'name': '岱岳区',\n",
       "       'center': '117.04353,36.1841',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0538',\n",
       "       'adcode': '370983',\n",
       "       'name': '肥城市',\n",
       "       'center': '116.763703,36.1856',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0538',\n",
       "       'adcode': '370921',\n",
       "       'name': '宁阳县',\n",
       "       'center': '116.799297,35.76754',\n",
       "       'level': 'district',\n",
       "       'districts': []}]},\n",
       "    {'citycode': '0537',\n",
       "     'adcode': '370800',\n",
       "     'name': '济宁市',\n",
       "     'center': '116.587245,35.415393',\n",
       "     'level': 'city',\n",
       "     'districts': [{'citycode': '0537',\n",
       "       'adcode': '370830',\n",
       "       'name': '汶上县',\n",
       "       'center': '116.487146,35.721746',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370883',\n",
       "       'name': '邹城市',\n",
       "       'center': '116.96673,35.405259',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370831',\n",
       "       'name': '泗水县',\n",
       "       'center': '117.273605,35.653216',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370881',\n",
       "       'name': '曲阜市',\n",
       "       'center': '116.991885,35.592788',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370811',\n",
       "       'name': '任城区',\n",
       "       'center': '116.595261,35.414828',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370829',\n",
       "       'name': '嘉祥县',\n",
       "       'center': '116.342885,35.398098',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370832',\n",
       "       'name': '梁山县',\n",
       "       'center': '116.08963,35.801843',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370827',\n",
       "       'name': '鱼台县',\n",
       "       'center': '116.650023,34.997706',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370828',\n",
       "       'name': '金乡县',\n",
       "       'center': '116.310364,35.06977',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370826',\n",
       "       'name': '微山县',\n",
       "       'center': '117.12861,34.809525',\n",
       "       'level': 'district',\n",
       "       'districts': []},\n",
       "      {'citycode': '0537',\n",
       "       'adcode': '370812',\n",
       "       'name': '兖州区',\n",
       "       'center': '116.828996,35.556445',\n",
       "       'level': 'district',\n",
       "       'districts': []}]}]}]}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "b.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 七、 搜索POI\n",
    ">* 定义：搜索服务API是一类简单的HTTP接口，提供多种查询POI信息的能力，其中包括关键字搜索、周边搜索、多边形搜索、ID查询四种筛选机制。  \n",
    "\n",
    ">* 应用场景：美团外卖大众点评等APP内嵌的周边游玩推荐，附近推荐等小功能。  \n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key，keywords，types\n",
    ">* 可选参数：city，citylimit，children，offset，page，extensions，sig，output，callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "poi_url=\"https://restapi.amap.com/v3/config/district?parameters\"\n",
    "keywords = \"大学\"\n",
    "city = \"广州\"\n",
    "citylimit = \"true\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "def poi(keywords,city,citylimit=None):\n",
    "    params={\n",
    "    \"key\":zhuang_key,\n",
    "    \"keywords\":keywords,\n",
    "    \"city\":city,\n",
    "    \"citylimit\":citylimit,\n",
    "}\n",
    "    result = requests.get(poi_url,params=params)\n",
    "    return result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "poi = poi(keywords,city,citylimit=None)\n",
    "poi"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '6',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'districts': [{'citycode': '025',\n",
       "   'adcode': '320113',\n",
       "   'name': '南京大学科学园',\n",
       "   'center': '118.955,32.123',\n",
       "   'level': 'street',\n",
       "   'districts': []},\n",
       "  {'citycode': '0471',\n",
       "   'adcode': '150105',\n",
       "   'name': '大学东路街道',\n",
       "   'center': '111.716,40.7922',\n",
       "   'level': 'street',\n",
       "   'districts': []},\n",
       "  {'citycode': '0756',\n",
       "   'adcode': '440402',\n",
       "   'name': '大学园区',\n",
       "   'center': '113.515,22.3835',\n",
       "   'level': 'street',\n",
       "   'districts': []},\n",
       "  {'citycode': '0471',\n",
       "   'adcode': '150105',\n",
       "   'name': '大学西路街道',\n",
       "   'center': '111.709,40.7989',\n",
       "   'level': 'street',\n",
       "   'districts': []},\n",
       "  {'citycode': '0371',\n",
       "   'adcode': '410103',\n",
       "   'name': '大学路街道',\n",
       "   'center': '113.632,34.7489',\n",
       "   'level': 'street',\n",
       "   'districts': []},\n",
       "  {'citycode': [],\n",
       "   'adcode': '440499',\n",
       "   'name': '澳门大学横琴校区(由澳门实施管辖)',\n",
       "   'center': '113.552,22.134',\n",
       "   'level': 'street',\n",
       "   'districts': []}]}"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "poi.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 八、 IP定位\n",
    ">* 定义：IP定位是一个简单的HTTP接口，根据用户输入的IP地址，能够快速的帮用户定位IP的所在位置。\n",
    "\n",
    ">* 应用场景：查询各大网站IP的所在地址，可间接判断网站服务器是否存在病毒入侵的安全隐患。  \n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key\n",
    ">* 可选参数：iP，sig，output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "metadata": {},
   "outputs": [],
   "source": [
    "ip_url=\"https://restapi.amap.com/v3/ip?parameters\"\n",
    "ip=\"114.247.50.2\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 83,
   "metadata": {},
   "outputs": [],
   "source": [
    "def ip(zhuang_key,ip):\n",
    "    params={\n",
    "    \"key\":zhuang_key,\n",
    "    \"ip\":ip,\n",
    "}\n",
    "    result = requests.get(ip_url,params=params)\n",
    "    return result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 84,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ip = ip(zhuang_key,ip)\n",
    "ip"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': [],\n",
       " 'city': [],\n",
       " 'adcode': [],\n",
       " 'rectangle': []}"
      ]
     },
     "execution_count": 85,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ip.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 86,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 86,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 87,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '0', 'info': 'UNKNOWN_ERROR', 'infocode': '20003'}"
      ]
     },
     "execution_count": 87,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 九、静态地图\n",
    ">* 定义：静态地图服务通过返回一张地图图片响应HTTP请求，使用户能够将高德地图以图片形式嵌入自己的网页中。用户可以指定请求的地图位置、图片大小、以及在地图上添加覆盖物，如标签、标注、折线、多边形。   \n",
    "\n",
    ">* 应用场景：供用户调用功能制作某区域的地图，如制作中大南方的校内区域地图。  \n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key，location（部分条件必选），zoom\n",
    ">* 可选参数：size，scale，markers，labels，paths，traffic，sig"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "jt_url = \"https://restapi.amap.com/v3/staticmap?parameters\"\n",
    "location = \"113.316554,23.124708\"\n",
    "zoom = \"1,10\"\n",
    "scale = \"1\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "params={\n",
    "    \"key\":zhuang_key,\n",
    "    \"location\":location,\n",
    "    \"zoom\":zoom,\n",
    "    \"scale\":scale,\n",
    "}\n",
    "r = requests.get(jt_url,params=params)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '0', 'info': 'UNKNOWN_ERROR', 'infocode': '20003'}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "def jingtai(zhuang_key,location,zoom,scale):\n",
    "    params ={\n",
    "        \"key\":zhuang_key,\n",
    "        \"location\":location,\n",
    "        \"zoom\":zoom,\n",
    "        \"scale\":scale,\n",
    "    }\n",
    "    r = requests.get(jt_url,params=params)\n",
    "    result = r.json()\n",
    "    return result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '0', 'info': 'UNKNOWN_ERROR', 'infocode': '20003'}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a = jingtai(zhuang_key,location,zoom,scale)\n",
    "a"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 十、 坐标转换\n",
    ">* 定义：坐标转换是一类简单的HTTP接口，能够将用户输入的非高德坐标（GPS坐标、mapbar坐标、baidu坐标）转换成高德坐标。  \n",
    "\n",
    ">* 应用场景：使用户能够更加直接地享受高德地图服务，以供自己的学习研究或商业需求。  \n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key，locations\n",
    ">* 可选参数：coordsys，sig，output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "zb_url=\"https://restapi.amap.com/v3/assistant/coordinate/convert?parameters\"\n",
    "locations=\"116.481499,39.990475|116.481499,39.990375\"\n",
    "coordsys=\"gps\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "def zuobiao(gao_key,locations,coordsys=None):\n",
    "    params={\n",
    "        \"key\":zhuang_key,\n",
    "        \"locations\":locations,\n",
    "        \"coordsys\":coordsys,\n",
    "    }\n",
    "    r=requests.get(zb_url,params=params)\n",
    "    return r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "e = zuobiao(zhuang_key,locations,coordsys=None)\n",
    "e"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '116.481499,39.990475|116.481499,39.990375'}"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "e.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 十一、 天气查询\n",
    ">* 定义：天气查询是一个简单的HTTP接口，根据用户输入的adcode，查询目标区域当前/未来的天气情况。  \n",
    "\n",
    ">* 应用场景：各大网站首页边角的天气预报小组件等。  \n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key，city\n",
    ">* 可选参数：extensions，output"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "tq_url=\"https://restapi.amap.com/v3/weather/weatherInfo?parameters\"\n",
    "city = \"110000\"\n",
    "extensions=\"all\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "def tianqi(gao_key,city,extensions):\n",
    "    params={\n",
    "    \"key\":zhuang_key,\n",
    "    \"city\":city,\n",
    "    \"extensions\":extensions,}\n",
    "    r = requests.get(tq_url,params=params)\n",
    "    return r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a = tianqi(zhuang_key,city,extensions)\n",
    "a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'city': '北京市',\n",
       "   'adcode': '110000',\n",
       "   'province': '北京',\n",
       "   'reporttime': '2020-11-17 01:00:52',\n",
       "   'casts': [{'date': '2020-11-17',\n",
       "     'week': '2',\n",
       "     'dayweather': '阴',\n",
       "     'nightweather': '小雨',\n",
       "     'daytemp': '13',\n",
       "     'nighttemp': '8',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'},\n",
       "    {'date': '2020-11-18',\n",
       "     'week': '3',\n",
       "     'dayweather': '中雨',\n",
       "     'nightweather': '小雨',\n",
       "     'daytemp': '11',\n",
       "     'nighttemp': '3',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '4',\n",
       "     'nightpower': '4'},\n",
       "    {'date': '2020-11-19',\n",
       "     'week': '4',\n",
       "     'dayweather': '多云',\n",
       "     'nightweather': '晴',\n",
       "     'daytemp': '12',\n",
       "     'nighttemp': '2',\n",
       "     'daywind': '东北',\n",
       "     'nightwind': '东北',\n",
       "     'daypower': '4',\n",
       "     'nightpower': '4'},\n",
       "    {'date': '2020-11-20',\n",
       "     'week': '5',\n",
       "     'dayweather': '晴',\n",
       "     'nightweather': '多云',\n",
       "     'daytemp': '10',\n",
       "     'nighttemp': '2',\n",
       "     'daywind': '北',\n",
       "     'nightwind': '北',\n",
       "     'daypower': '≤3',\n",
       "     'nightpower': '≤3'}]}]}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 十二、 输入提示\n",
    ">* 定义：输入提示是一类简单的HTTP接口，提供根据用户输入的关键词查询返回建议列表。  \n",
    "\n",
    ">* 应用场景：地图类应用或软件的内嵌搜索引擎  \n",
    "\n",
    ">* requests.get（）\n",
    ">* 必选参数：key，keywords\n",
    ">* 可选参数：type，location，city，citylimit，datatype，sig，output，callback"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "keywords=\"星巴克\"\n",
    "location=\"113.316554,23.124708\"\n",
    "city=\"广州\"\n",
    "citylimit=\"true\"\n",
    "output=\"json\"\n",
    "zhuang_key=\"1a8b4a8f8eacf6e72af8287289e0e270\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [],
   "source": [
    "def tips(zhuang_key,keywords,location,city):\n",
    "    tips_url=\"https://restapi.amap.com/v3/assistant/inputtips?parameters\"\n",
    "    params={\n",
    "        \"keywords\":keywords,\n",
    "        \"key\":zhuang_key,\n",
    "        \"location\":location,\n",
    "        \"city\":city,\n",
    "        \"output\":output,\n",
    "    }\n",
    "    t=requests.get(tips_url,params=params)\n",
    "    return t"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '星巴克',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF5WB78',\n",
       "   'name': '星巴克(邦华环球国际店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.316470,23.124638',\n",
       "   'address': '珠江新城金穗路1号邦华环球广场首层01单元',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFM89PR8',\n",
       "   'name': '星巴克(广州大道外商酒店店)',\n",
       "   'district': '广东省广州市越秀区',\n",
       "   'adcode': '440104',\n",
       "   'location': '113.314464,23.124637',\n",
       "   'address': '广州大道293号外商酒店首层',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B00141JI5Q',\n",
       "   'name': '星巴克(华亿丽晶店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.318220,23.123341',\n",
       "   'address': '珠江新城金穗路28号1层111单元',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFG74PI2',\n",
       "   'name': '星巴克(保利克洛维店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.319853,23.125960',\n",
       "   'address': '华强路9号保利克洛维广场一期一层的105单元',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFIOUPSY',\n",
       "   'name': '星巴克(远洋大厦店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.317709,23.119159',\n",
       "   'address': '花城大道20号远洋大厦一楼104自编之二单元',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B00140WCII',\n",
       "   'name': '星巴克(全球通店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.322256,23.121944',\n",
       "   'address': '珠江新城F1-3地块地段广东全球通大厦第一层的101单元',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFJDWMXM',\n",
       "   'name': '星巴克(高德置地春广场店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.321951,23.119743',\n",
       "   'address': '花城大道85号高德置地广场春商场B2层B202单元号',\n",
       "   'typecode': '050501',\n",
       "   'city': []},\n",
       "  {'id': 'B00140TYKS',\n",
       "   'name': '星巴克臻选(保利香槟花园店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.318208,23.117581',\n",
       "   'address': '华利路46-52号保利香槟花园东区07,08号铺',\n",
       "   'typecode': '050500',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFH120ZI',\n",
       "   'name': '星巴克(花城汇北区店)',\n",
       "   'district': '广东省广州市天河区',\n",
       "   'adcode': '440106',\n",
       "   'location': '113.324691,23.126295',\n",
       "   'address': '黄埔大道西74号花城汇北区8090 FASHION HUB B1层的A29-A30',\n",
       "   'typecode': '050501',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a = tips(zhuang_key,keywords,location,city)\n",
    "a.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 交通态势与批量请求接口"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "高德地图API文档内已注明“说明：交通态势接口计划将于2020年12月31日下线，目前不再对新用户开放。如需合作请通过工单进行商务咨询。”  \n",
    "\n",
    "交通态势-API文档-开发指南-Web服务 API | 高德地图API  https://lbs.amap.com/api/webservice/guide/api/trafficstatus"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "特别说明：受产品策略调整影响，自2020年11月起，建议您不再使用此批量接口。后续平台会逐步废弃并下线此服务。\n",
    "批量请求接口-API文档-开发指南-Web服务 API | 高德地图API  https://lbs.amap.com/api/webservice/guide/api/batchrequest"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
